canOpen abstract method

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

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

Future<bool> canOpen(
  BuildContext? context,
  NyArgument? data,
);