Bloc<T> constructor

Bloc<T>({
  1. T? initialValue,
})

Implementation

Bloc({T? initialValue}) : _controller = StreamController<T>() {
  if (initialValue != null) add(initialValue);
}