createState method
How to create state from RouteInformation given by BeamerDelegate and passed via BeamerDelegate.locationBuilder.
This will be called only once during the lifetime of BeamLocation. One should override this if using a custom state class.
See create.
Implementation
T createState(RouteInformation routeInformation) =>
BeamState.fromRouteInformation(
routeInformation,
beamLocation: this,
) as T;