onCreate method

  1. @protected
  2. @mustCallSuper
void onCreate(
  1. IBloc<Object?, Object?> bloc
)

Called whenever a Bloc is instantiated. In many cases, a BLoC may be lazily instantiated and onCreate can be used to observe exactly when the bloc instance is created.

Implementation

@protected
@mustCallSuper
void onCreate(IBloc bloc) {}