When Arg is undefined, instances of this class act as
extensions. Otherwise, you have to call of to create an
extension value.
StaticdefineDefine a plugin from a constructor function that creates the plugin's value, given an editor view.
Optionalspec: PluginSpec<V>StaticfromCreate a plugin for a class whose constructor takes a single editor view as argument.
Optionalspec: PluginSpec<V>
View plugins associate stateful values with a view. They can influence the way the content is drawn, and are notified of things that happen in the view. They optionally take an argument, in which case you need to call
ofto create an extension for the plugin. When the argument type is undefined, you can use the plugin instance as an extension directly.