canOpen method

  1. @override
Future<bool> canOpen(
  1. BuildContext? context,
  2. NyArgument? data
)
override

Return true if the User can access this page and false if they can't. canOpen will contain the context and any arguments passed from the last route.

Implementation

@override
Future<bool> canOpen(
  BuildContext? context,
  NyArgument? data,
) async =>
    true;