FunctionPlugin class

A simple plugin created from a function.

final myPlugin = FunctionPlugin((app) {
  app.insertResource(MyResource());
});
Implemented types

Constructors

FunctionPlugin(void _build(App app), {void cleanup()?})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(App app) → void
Configures the app with this plugin's functionality.
override
cleanup() → void
Optional cleanup when the app is disposed.
override
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