AmFunctionTrigger<T> class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
start → void
you need to use this getter to start listening.
read-only

Methods

activate() → void
Reactivates listening the provider.
cancel() → void
Cancels listening the provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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