onModeCreated method
Listen to editing mode instantiations. The callback is called on
each mode when initializing the plugin, and then every time a new
mode is added. The callback should be an async function.
Implementation
void onModeCreated(Function(BaseModeDefinition mode) callback) {}