NotificationWidget constructor

const NotificationWidget({
  1. Key? key,
  2. int? duration = 2000,
  3. bool? autoDismissible = true,
  4. VoidCallback? disposeOverlay,
  5. String? message,
  6. TextStyle? messageStyle,
  7. TextStyle? titleStyle,
  8. Color? backgroundColor = Colors.black,
  9. String? title = "Notification",
  10. int? animDuration = 400,
})

Implementation

const NotificationWidget(
    {Key? key,
    this.duration = 2000,
    this.autoDismissible = true,
    this.disposeOverlay,
    this.message,
    this.messageStyle,
    this.titleStyle,
    this.backgroundColor = Colors.black,
    this.title = "Notification",
    this.animDuration = 400})
    : super(key: key);