AmFunctionTrigger<T> constructor

AmFunctionTrigger<T>({
  1. required AmDataProvider<T> amDataProvider,
  2. required void function(
    1. T? value
    ),
})

Fires a function when the given provider data is changed

Implementation

AmFunctionTrigger({required this.amDataProvider, required this.function}) {
  amDataProvider._callFunctions[_key] = this;
}