Bloc<S> constructor

Bloc<S>(
  1. S state
)

Implementation

Bloc(this.state)
    : _controller = StreamController<S>.broadcast(),
      _initialState = state {
  if (S == dynamic) {
    throw Exception('Please provide a type for Bloc');
  }
}