beamToNamed property

(String Function(BeamLocation<RouteInformationSerializable>? origin, BeamLocation<RouteInformationSerializable> target, String? deepLink)?) beamToNamed
final

If guard check returns false, beam to this URI string.

origin holds the origin BeamLocation from where it is being beamed from. null if there's no origin, which may happen if it's the first navigation or the history was cleared. target holds the BeamLocation to where we tried to beam to, i.e. the one on which the check failed. deepLink holds the potential deep-link that was set manually via BeamerDelegate.setDeepLink or came from the platforms.

Implementation

final String Function(
  BeamLocation? origin,
  BeamLocation target,
  String? deepLink,
)? beamToNamed;