onInit method

  1. @protected
  2. @mustCallSuper
void onInit(
  1. Map args,
  2. CoreContext context
)

Called right after initState and before build. context is here fully usable without restrictions.

Best place to register state notifiers, hooks and other resources.

Check InitProvider and LazyProvider mixins to alter args. Check OnLayout mixin to process resources after view is adjusted.

Implementation

@protected
@mustCallSuper
void onInit(Map args, CoreContext context) {}