GameWidget<T extends Game> constructor
GameWidget<T extends Game> ({
- required T game,
- TextDirection? textDirection,
- GameLoadingWidgetBuilder? loadingBuilder,
- GameErrorWidgetBuilder? errorBuilder,
- WidgetBuilder? backgroundBuilder,
- Map<
String, OverlayWidgetBuilder< ? overlayBuilderMap,T> > - List<
String> ? initialActiveOverlays, - FocusNode? focusNode,
- bool autofocus = true,
- MouseCursor? mouseCursor,
- bool addRepaintBoundary = true,
- Key? key,
Renders the provided game
instance.
Implementation
GameWidget({
required T this.game,
this.textDirection,
this.loadingBuilder,
this.errorBuilder,
this.backgroundBuilder,
this.overlayBuilderMap,
this.initialActiveOverlays,
this.focusNode,
this.autofocus = true,
this.mouseCursor,
this.addRepaintBoundary = true,
super.key,
}) : gameFactory = null {
_initializeGame(game!);
}