getInitialState method

  1. @protected
S getInitialState()

Tries to retreive the initial BloC's state.

Implementation

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

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

  return initState();
}