WidgetsApp({Key key, @required RouteFactory onGenerateRoute, String title, TextStyle textStyle, Color color, NavigatorObserver navigatorObserver, String initialRoute, LocaleChangedCallback onLocaleChanged, bool showPerformanceOverlay: false, bool checkerboardRasterCacheImages: false, bool showSemanticsDebugger: false, bool debugShowCheckedModeBanner: true })

Creates a widget that wraps a number of widgets that are commonly required for an application.

Source

WidgetsApp({
  Key key,
  @required this.onGenerateRoute,
  this.title,
  this.textStyle,
  this.color,
  this.navigatorObserver,
  this.initialRoute,
  this.onLocaleChanged,
  this.showPerformanceOverlay: false,
  this.checkerboardRasterCacheImages: false,
  this.showSemanticsDebugger: false,
  this.debugShowCheckedModeBanner: true
}) : super(key: key) {
  assert(onGenerateRoute != null);
  assert(showPerformanceOverlay != null);
  assert(checkerboardRasterCacheImages != null);
  assert(showSemanticsDebugger != null);
}