onToolSelection method

FutureOr<void> onToolSelection(
  1. OnToolSelectEvent event,
  2. Emitter<TextEditorState> emit
)

Implementation

FutureOr<void> onToolSelection(
    OnToolSelectEvent event, Emitter<TextEditorState> emit) {
  currentTool = event.currentTool;
  toolBarHeight = 300;
  emit(TextEditorLoaded());
}