runWithRunner method

Future<void> runWithRunner({
  1. required WidgetBuilder app,
  2. required List<EcosedPlugin> plugins,
  3. required Future<void> runner(
    1. Widget app
    ),
})
inherited

使用运行器运行

Implementation

Future<void> runWithRunner({
  required WidgetBuilder app,
  required List<EcosedPlugin> plugins,
  required Future<void> Function(Widget app) runner,
}) async {
  return await runner(_builder(app)).then((_) {
    if (!kReleaseMode && kIsWeb) {
      // 打印提示信息
      debugPrint('此应用正在Web浏览器中运行, 资源受限.');
    }
  });
}