OnProviderChange<T> typedef Null safety

OnProviderChange<T> = void Function(BuildContext context, T? previous, T value)

A function that can react to changes on a provider

See also ProviderListener

Implementation

// ignore: deprecated_member_use_from_same_package
/// See also [ProviderListener]
typedef OnProviderChange<T> = void Function(
  BuildContext context,
  T? previous,
  T value,
);