initContext method

  1. @override
void initContext(
  1. BuildContext context
)

Invoked when context is mounted (builds for the first time).

Useful to override for initializing values in an GSMap, or any other resources that are related only to context.

During the widget tree build cycle initContext and disposeContext are methods where it is safe to write values in and GSMap or GSValueProvider.

Default implementation is no-op, it's not necessary to call super.

See also:

Implementation

@override
void initContext(BuildContext context) {}