Plugin<T> class abstract

Base class for custom plugins.

Create a custom plugin by extending this class. Plugins can wrap story into custom widgets by providing storyBuilder and have settings panel by providing settingsBuilder.

See DeviceFramePlugin as an example for using both settingsBuilder and storyBuilder.

Implementers

Constructors

Plugin({IconData icon = Icons.settings, PluginSettingsBuilder<T>? settingsBuilder, PluginStoryBuilder<T> storyBuilder = _default, T? initialData})

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData
Icon that will be rendered in settings panel.
final
initialData → T?
Initial data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settingsBuilder PluginSettingsBuilder?
Settings panel content for this plugin.
final
storyBuilder PluginStoryBuilder
Story wrapper.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited