NotificationOptions class

Class representing the options for configuring the appearance and behavior of a toast notification.

Constructors

NotificationOptions({EdgeInsetsGeometry? toastPadding, Color? toastColor, Gradient? gradient, Duration? animationDuration, NotificationType notificationType = NotificationType.top, double borderRadius = 10, int secondDuration = 4, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, BoxBorder? border, Curve? curve, BoxShape boxShape = BoxShape.rectangle, BoxConstraints? constraints, double? height, double? width})
const

Properties

animationDuration Duration?
Duration for the animation.
final
border BoxBorder?
Border for the toast notification.
final
borderRadius double
Border radius for the toast notification.
final
boxShape BoxShape
The shape of the toast notification box.
final
constraints BoxConstraints?
Constraints for the toast notification box.
final
crossAxisAlignment CrossAxisAlignment
How children should be placed along the cross axis in a flex layout.
final
curve Curve?
Curve for the animation.
final
gradient Gradient?
Gradient for the background of the toast notification.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the toast notification box.
final
mainAxisAlignment MainAxisAlignment
How the children should be placed along the main axis in a flex layout.
final
notificationType NotificationType
Type of the notification (e.g., success, error).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondDuration int
Duration for which the toast notification will be visible.
final
toastColor Color?
Background color for the toast notification.
final
toastPadding EdgeInsetsGeometry?
Padding for the toast notification.
final
width double?
Width of the toast notification box.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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