ZeroSnackbarAlert class

A class that provides a function to display a alert message ZeroSnackbarAlert have 2 methods:

  • show to display a alert message
  • hide to hide a alert message the alert default duration is 2 seconds and can be changed by passing a Duration to the show method

Constructors

ZeroSnackbarAlert()
factory

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

hide() → void
hide hide the alert by removing the _overlayEntry variable value
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext context, {required String title, String? subtitle, ZeroSnackbarAlertVariant variant = ZeroSnackbarAlertVariant.danger, ZeroSnackbarAlertType type = ZeroSnackbarAlertType.solidFilled, ZeroSnackbarAlertStyle? style, SnackbarPosition position = SnackbarPosition.bottom, Widget? action}) → void
show is a function that displays a alert message
toString() String
A string representation of this object.
inherited

Operators

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