runApp property

Function runApp
getter/setter pair

Implementation

static Function runApp = (builder) async {
  final app = await builder();
  assert(app is flutter.Widget,
      '"Builder" should returns a variable of type `FutureOr<Widget>`');
  flutter.runApp(app);
};