RouteInformation class Null safety
A piece of routing information.
The route information consists of a location string of the application and a state object that configures the application in that location.
The latter case happens in web application where the Router reports route changes back to the web engine.
The current RouteInformation of an application is also used for state restoration purposes. Before an application is killed, the Router converts its current configurations into a RouteInformation object utilizing the RouteInformationProvider. The RouteInformation object is then serialized out and persisted. During state restoration, the object is deserialized and passed back to the RouteInformationProvider, which turns it into a configuration for the Router again to restore its state from.