MApplication constructor

const MApplication({
  1. Key? key,
  2. required MApplicationOption option,
  3. required Future<MApplicationConfig> configLoader({
    1. required MApplicationOption option,
    }),
  4. required List<GetPage> pages(
    1. MContext
    ),
  5. required Widget loadingPage(
    1. MContext
    ),
  6. required Widget errorPage(
    1. MContext
    ),
  7. required Future<String> initialRoute(
    1. MContext
    ),
  8. void initState()?,
  9. Future<void> setup(
    1. MContext
    )?,
  10. ThemeData? theme,
})

Implementation

const MApplication({
  super.key,
  required this.option,
  required this.configLoader,
  required this.pages,
  required this.loadingPage,
  required this.errorPage,
  required this.initialRoute,
  this.initState,
  this.setup,
  this.theme,
});