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(), Widget? image, required String title, String? desc, Widget content = const SizedBox(), List<DialogButton>? buttons, Function? closeFunction, Icon? closeIcon, bool onWillPopActive = false, AlertAnimation? alertAnimation})
Alert constructor

Properties

alertAnimation AlertAnimation?
final
buttons List<DialogButton>?
final
closeFunction Function?
final
closeIcon Icon?
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style AlertStyle
final
title String
final
type AlertType?
final

Methods

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

Operators

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