ValueStreamWidgetListener<M, T> typedef
ValueStreamWidgetListener<M, T> =
void Function(BuildContext context, T? preDistinct, T? curDistinct, M value)
below code is from rxdart_flutter package; but support rxdart 0.27.0+
Signature for the listener
function which takes the BuildContext
along
with the previous and current value
and is responsible for
executing in response to value
changes.
Implementation
/// Signature for the `listener` function which takes the `BuildContext` along
/// with the previous and current `value` and is responsible for
/// executing in response to `value` changes.
typedef ValueStreamWidgetListener<M, T> =
void Function(
BuildContext context,
T? preDistinct,
T? curDistinct,
M value,
);