initCommands method
@internal
Implementation
@override
void initCommands() {
addCommand(
"open",
_open,
i18n: 'editor:commands.open',
icon: Icons.folder_open,
);
addCommand(
"new",
_newFile,
i18n: 'editor:commands.new',
icon: Icons.post_add,
);
addCommand("save", _save, i18n: 'editor:commands.save', icon: Icons.save);
addCommand(
"revert",
_revert,
i18n: 'editor:commands.revert',
icon: Icons.restore,
);
addCommand("undo", _undo, i18n: 'editor:commands.undo', icon: Icons.undo);
addCommand("play", _play, label: 'Play', icon: Icons.play_arrow);
}