Alert class

Main class to create alerts.

You must call the "show()" method to view the alert class you have defined.

Constructors

Alert({required BuildContext context, String? id, AlertType? type, AlertStyle style = const AlertStyle(), EdgeInsets? padding, Widget? image, String? title, String? desc, Widget content = const SizedBox(), List<DialogButton>? buttons, Function? closeFunction, Widget? closeIcon, bool onWillPopActive = false, AlertAnimation? alertAnimation, bool useRootNavigator = true})
Alert constructor

Properties

alertAnimation AlertAnimation?
final
buttons List<DialogButton>?
final
closeFunction Function?
final
closeIcon Widget?
final
content Widget
final
context BuildContext
final
desc String?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
image Widget?
final
onWillPopActive bool
final
padding EdgeInsets?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style AlertStyle
final
title String?
final
type AlertType?
final
useRootNavigator bool
final

Methods

dismiss() Future<void>
Dismisses the alert dialog.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<bool?>
Displays defined alert window
showBottomDialog(String firstButtonText, String secondButtonText) Future<bool?>
toString() String
A string representation of this object.
inherited

Operators

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