hookPrepare method

  1. @protected
  2. @visibleForOverriding
Future<void> hookPrepare()
inherited

Called shortly after hookInitState.

  • put asynchronous initializations here.
  • this can also be used for synchronous initializations, but not for initializations that the ZML (in its "initial" form) depends on, because State.build may run before this hook is invoked.
  • see hookBuildInitialWidget for more info on this delayed-initialization technique.

Implementation

@protected
@visibleForOverriding
Future<void> hookPrepare() async { }