build method

  1. @override
World 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
World build() {
  if (!maintainState) {
    world = builder();
    return world!;
  } else {
    return world ??= builder();
  }
}