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.

Implementation

final BeamLocation Function(
    BuildContext context, BeamLocation? origin, BeamLocation target)? beamTo;