AlertWatcher constructor

const AlertWatcher({
  1. required Widget child,
  2. required Widget alertDialogBuilder(
    1. BuildContext context,
    2. AlertInfo info
    )?,
  3. Key? key,
})

Automatically handles alerts from the stream of AlertBloc

Implementation

const AlertWatcher({
  required this.child,
  required this.alertDialogBuilder,
  super.key,
});