yRunApp function
void
yRunApp({
- required Future<
YPage> onLaunchPage(), - MaterialColor? primarySwatch,
- required dynamic onYConfig(),
- dynamic builder(
- BuildContext context,
- Widget? child
- ThemeData? theme,
- dynamic onYRan()?,
YFree启动函数
Implementation
void yRunApp({
required Future<YPage> Function() onLaunchPage,
MaterialColor? primarySwatch,
required Function() onYConfig,
Function(BuildContext context, Widget? child)? builder,
ThemeData? theme,
Function()? onYRan,
}) {
Deferred_Main.loadLibrary().then(
(value) async => Deferred_Main.yRunApp(
launchPage: await onLaunchPage.call(),
primarySwatch: primarySwatch,
onYConfig: onYConfig,
builder: builder,
theme: theme,
onYRan: onYRan,
),
);
}