EditorBloc constructor

EditorBloc({
  1. required EventBus eventBus,
  2. EditorState? initialState,
})

Implementation

EditorBloc({
  required this.eventBus,
  EditorState? initialState,
}) : super(initialState ?? EditorState.empty()) {
  controller.addListener(controllerListener);
  emit(state);
}