DVStudioEditorHook typedef
DVStudioEditorHook =
VoidCallback Function(DVStudioEditorController controller)
Attaches to an editor when the Studio screen opens one; the returned callback is called when that editor goes away.
DVStudioScreen(editorHooks: <DVStudioEditorHook>[
(DVStudioEditorController controller) {
final sub = controller.edits.listen(publish);
return sub.cancel;
},
])
Implementation
typedef DVStudioEditorHook = VoidCallback Function(
DVStudioEditorController controller,
);