MessageOverlayListener constructor
const
MessageOverlayListener({
- Key? key,
- required Widget child,
- required ProviderBase provider,
- String? errorExtractor(
- dynamic
- String? infoExtractor(
- dynamic
- void onError(
- String error
- void onErrorTap(
- String error
- Color errorBackgroundColor = Colors.red,
- Color errorColor = Colors.white,
- Widget errorLeading = const Icon(Icons.error, color: Colors.white),
- Widget? errorTrailing,
- void onInfo(
- String info
- void onInfoTap(
- String info
- Color infoBackgroundColor = Colors.lightBlue,
- Color infoColor = Colors.white,
- Widget infoLeading = const Icon(Icons.info, color: Colors.white),
- Widget? infoTrailing,
Implementation
const MessageOverlayListener(
{Key? key,
required this.child,
required this.provider,
this.errorExtractor,
this.infoExtractor,
this.onError,
this.onErrorTap,
this.errorBackgroundColor = Colors.red,
this.errorColor = Colors.white,
this.errorLeading = const Icon(Icons.error, color: Colors.white),
this.errorTrailing,
this.onInfo,
this.onInfoTap,
this.infoBackgroundColor = Colors.lightBlue,
this.infoColor = Colors.white,
this.infoLeading = const Icon(Icons.info, color: Colors.white),
this.infoTrailing})
: super(key: key);