getInitialState method

  1. @protected
S getInitialState()
inherited

Tries to retreive the initial BloC's state.

Implementation

@protected
S getInitialState() {
  if (initialState != null) {
    return initialState!;
  }

  if (initialStateBuilder != null) {
    return initialStateBuilder!();
  }

  return initState();
}