BlocListener<T extends BlocStates<Object?>> typedef

BlocListener<T extends BlocStates<Object?>> = void Function(BuildContext context, T state)

Signature for a function that listens to changes in the BlocStates.

Implementation

typedef BlocListener<T extends BlocStates> = void Function(
  BuildContext context,
  T state,
);