GameWidget<T extends Game> constructor

GameWidget<T extends Game>({
  1. required T game,
  2. TextDirection? textDirection,
  3. GameLoadingWidgetBuilder? loadingBuilder,
  4. GameErrorWidgetBuilder? errorBuilder,
  5. WidgetBuilder? backgroundBuilder,
  6. Map<String, OverlayWidgetBuilder<T>>? overlayBuilderMap,
  7. List<String>? initialActiveOverlays,
  8. FocusNode? focusNode,
  9. bool autofocus = true,
  10. MouseCursor? mouseCursor,
  11. bool addRepaintBoundary = true,
  12. 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!);
}