goMain static method

dynamic goMain(
  1. BuildContext context
)

Implementation

static goMain(BuildContext context) =>
    Navigator.of(context).pushAndRemoveUntil(
      MaterialPageRoute(
        builder: (_) {
          return MultiBlocProvider(
            providers: [
              BlocProvider(create: (context) => MainBloc()),
            ],
            child: const MainPage(),
          );
        },
      ),
      (route) => false,
    );