BeamGuard constructor

BeamGuard({
  1. required List pathBlueprints,
  2. required bool check(
    1. BuildContext context,
    2. BeamLocation<BeamState> location
    ),
  3. void onCheckFailed(
    1. BuildContext context,
    2. BeamLocation<BeamState> location
    )?,
  4. BeamLocation<BeamState> beamTo(
    1. BuildContext context
    )?,
  5. String? beamToNamed,
  6. BeamPage? showPage,
  7. bool guardNonMatching = false,
  8. bool replaceCurrentStack = true,
})

Implementation

BeamGuard({
  required this.pathBlueprints,
  required this.check,
  this.onCheckFailed,
  this.beamTo,
  this.beamToNamed,
  this.showPage,
  this.guardNonMatching = false,
  this.replaceCurrentStack = true,
});