build method

  1. @override
Component build()
override

Creates the page component managed by this page.

Overriding this method is an alternative to supplying the explicit builder function in the constructor.

Implementation

@override
Component build() {
  if (_builder != null) {
    game.overlays.addEntry(name, _builder);
  }
  return Component();
}