MessageOverlayListener constructor

const MessageOverlayListener({
  1. Key? key,
  2. required Widget child,
  3. required ProviderBase provider,
  4. String? errorExtractor(
    1. dynamic
    )?,
  5. String? infoExtractor(
    1. dynamic
    )?,
  6. void onError(
    1. String error
    )?,
  7. void onErrorTap(
    1. String error
    )?,
  8. Color errorBackgroundColor = Colors.red,
  9. Color errorColor = Colors.white,
  10. Widget errorLeading = const Icon(Icons.error, color: Colors.white),
  11. Widget? errorTrailing,
  12. void onInfo(
    1. String info
    )?,
  13. void onInfoTap(
    1. String info
    )?,
  14. Color infoBackgroundColor = Colors.lightBlue,
  15. Color infoColor = Colors.white,
  16. Widget infoLeading = const Icon(Icons.info, color: Colors.white),
  17. 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);