AlertComponentOptions class

AlertComponentOptions - Configuration options for the AlertComponent widget.

Example:

AlertComponent(
  options: AlertComponentOptions(
    visible: true,
    message: "Operation successful!",
    type: "success",
    duration: 3000,
    onHide: () => print("Alert hidden"),
    textColor: Colors.white,
  ),
);

Constructors

AlertComponentOptions({required bool visible, required String message, String type = 'success', int duration = 3000, required Function onHide, Color textColor = Colors.black})

Properties

duration int
final
hashCode int
The hash code for this object.
no setterinherited
message String
final
onHide Function
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color
final
type String
final
visible bool
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