ExamplePlugin class

Example plugin implementation

Inheritance

Constructors

ExamplePlugin()

Properties

actions → Map<String, Future Function(Map<String, dynamic>)>
Custom action executors provided by this plugin
no setteroverride
dependencies → List<String>
Plugin dependencies (other plugin names)
no setterinherited
description → String
Plugin description
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
hooks → Map<PluginHookType, PluginHookCallback>?
Hooks this plugin listens on.
no setterinherited
name → String
Unique plugin name
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
services → Map<Type, Service>?
Services provided by this plugin
no setterinherited
version → String
Plugin version
no setteroverride
widgets → Map<String, WidgetFactory>
Custom widgets provided by this plugin
no setteroverride

Methods

configure(Map<String, dynamic> config) → void
Configure the plugin with a configuration map. Called before initialize() to provide plugin-specific settings.
inherited
dispose() → Future<void>
Dispose of plugin resources
override
initialize(PluginContext context) → Future<void>
Initialize the plugin
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDisabled() → void
Called when plugin is disabled
inherited
onEnabled() → void
Called when plugin is enabled
inherited
toString() → String
A string representation of this object.
inherited

Operators

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