DeviAlert class
A utility class to show alert dialogs and toast notifications in a Flutter app.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
alert(
BuildContext context, {String title = '', String description = '', List< Widget> ? actions}) → Future<void> -
Shows an alert dialog with the provided
title
,description
, andactions
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toast(
BuildContext context, {String? title, String? buttonLabel, dynamic onPressed()?, Color? buttonTheme, Color? theme}) → void -
Shows a toast notification with the provided
title
,buttonLabel
,onPressed
,buttonTheme
, andtheme
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited