AmFunctionTrigger<T> class

Fires a function when the given provider data is changed

Constructors

AmFunctionTrigger({required AmDataProvider<T> amDataProvider, required void function(T? value)})
Fires a function when the given provider data is changed

Properties

amDataProvider AmDataProvider<T>
Takes AmDataProvider<T> to fire the function if the provider data is changed.
final
function → void Function(T? value)
A function to fire when the provider data is changed
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start → void
you need to use this getter to start listening.
no setter

Methods

activate() → void
Reactivates listening the provider.
cancel() → void
Cancels listening the provider.
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