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