refactor: renamed EditorToolBar
This commit is contained in:
15
lib/src/models/editor_state.dart
Normal file
15
lib/src/models/editor_state.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:rich_editor/src/models/enum.dart';
|
||||
|
||||
import 'command_state.dart';
|
||||
|
||||
class EditorState {
|
||||
bool didHtmlChange;
|
||||
String html;
|
||||
Map<CommandName, CommandState> commandStates;
|
||||
|
||||
EditorState({
|
||||
this.didHtmlChange = false,
|
||||
this.html = '',
|
||||
this.commandStates = const <CommandName, CommandState>{},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user