pushFairPath static method

void pushFairPath({
  1. required String fairPath,
  2. required String fairName,
  3. Object? arguments,
})

Implementation

static void pushFairPath(
    {required String fairPath, required String fairName, Object? arguments}) {
  navigator?.push(MaterialPageRoute(builder: (context) {
    return FairWidget(
        path: fairPath,
        name: fairName,
        data: {'fairProps': jsonEncode(arguments ?? {})});
  }));
}