listen method Null safety
- void listener(
- BuildContext context,
- TCubit cubix
- Widget child,
- {Object? family,
- bool transient = false}
Implementation
Widget listen(
void Function(BuildContext context, TCubit cubix) listener,
Widget child, {
Object? family,
/// remove cubix automatically when the widget is disposed
bool transient = false,
}) {
return CubixListener<TCubit>(
create: this,
listener: listener,
child: child,
family: family,
transient: transient,
);
}