beamTo property

If guard check returns false, build a BeamLocation to be beamed to.

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 BeamLocation Function(
  BuildContext context,
  BeamLocation? origin,
  BeamLocation target,
  String? deepLink,
)? beamTo;