AlertInfo class

Constructors

AlertInfo.show({required BuildContext context, required String text, MessagePosition position = MessagePosition.top, double padding = 30.0, int duration = 3, TypeInfo typeInfo = TypeInfo.info, Color? backgroundColor, Color? textColor, Color? iconColor, Color? actionColor, String? action, Function? actionCallback, IconData? icon})
Display an animated Alert info

Properties

action String?
final
actionCallback Function?
Optional : action color
final
actionColor Color?
Optional callback that is called when the action is clicked.
final
backgroundColor Color?
Optionnal : background color
final
context BuildContext
represents a handle to the location of a widget in the widget tree
final
duration int
The duration in seconde of the alert info
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Optional : icon to diplay
final
iconColor Color?
Optionnal : icon color
final
padding double
The padding from top or bottom
final
position MessagePosition
The position of the alerte info Top or Bottom
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text to be displayed
final
textColor Color?
Optionnal : text color
final
typeInfo TypeInfo
Optional : TypeInfo warning, error, success, info
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