build method

  1. @protected
Component build()

Creates the page component managed by this page.

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

Implementation

@protected
Component build() {
  assert(
    _builder != null,
    'Either provide `builder` in the constructor, or override the build() '
    'method',
  );
  return _builder!();
}