SimplePluginValue<T> class
A simple plugin value wrapper.
- Inheritance
-
- Object
- PluginValue
- SimplePluginValue
Constructors
- SimplePluginValue(T value, {void updateFn(T value, ViewUpdate update)?, void destroyFn(T value, EditorViewState view)?})
Properties
- destroyFn → void Function(T value, EditorViewState view)?
-
Optional destroy function.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateFn → void Function(T value, ViewUpdate update)?
-
Optional update function.
final
- value → T
-
The wrapped value.
final
Methods
-
destroy(
EditorViewState view) → void -
Called when the plugin is destroyed.
override
-
docViewUpdate(
EditorViewState view) → void -
Called when the document view has been updated.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
ViewUpdate update) → void -
Called when the view is updated.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited