TopAlertNotification constructor Null safety

TopAlertNotification(
  1. BuildContext context,
  2. Widget child,
  3. {String? key,
  4. Color color = Colors.white,
  5. bool? closeOnX,
  6. VoidCallback? onTap,
  7. Duration duration = Duration.zero}
)

Implementation

TopAlertNotification(
  this.context,
  this.child, {
  this.key,
  this.color = Colors.white,
  this.closeOnX,
  this.onTap,
  this.duration = Duration.zero,
});