TopAlertNotification class Null safety

This is the main class to contain the Overlay State and the Overlay Entry to allow manipulation of the overlay

Constructors

TopAlertNotification(BuildContext context, Widget child, {String? key, Color color = Colors.white, bool? closeOnX, VoidCallback? onTap, Duration duration = Duration.zero})

Properties

child Widget
read / write
closeOnX bool?
read / write
color Color
read / write
context BuildContext
read / write
duration Duration
read / write
hashCode int
The hash code for this object.
read-onlyinherited
key String?
read / write
onTap VoidCallback?
read / write
overlayEntry OverlayEntry
read / write
overlayState OverlayState?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

dismissTopAlert() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
showTopAlert() → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited