ToastManager class

Constructors

ToastManager.new()
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

clearAll() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show({required BuildContext context, String? title, required String message, IconData? icon, Color? backgroundColor, Color? textColor, Color? iconColor, Duration duration = const Duration(seconds: 4), ToastPosition position = ToastPosition.topCenter, bool showCloseButton = true, EdgeInsetsGeometry margin = const EdgeInsets.all(16), double borderRadius = 8.0, double? width, double? height, ToastType type = ToastType.custom, BoxShadow? shadow, double? maxWidth}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

custom({required BuildContext context, String? title, required String message, IconData? icon, Color? backgroundColor, Color? textColor, Color? iconColor, Duration duration = const Duration(seconds: 4), ToastPosition position = ToastPosition.topCenter, bool showCloseButton = true, EdgeInsetsGeometry margin = const EdgeInsets.all(16), double borderRadius = 8.0, double? width, double? height, BoxShadow? shadow, double? maxWidth}) → void
error({required BuildContext context, String? title, required String message, Duration duration = const Duration(seconds: 6), ToastPosition position = ToastPosition.topCenter, double? maxWidth}) → void
info({required BuildContext context, String? title, required String message, Duration duration = const Duration(seconds: 4), ToastPosition position = ToastPosition.topCenter, double? maxWidth}) → void
success({required BuildContext context, String? title, required String message, Duration duration = const Duration(seconds: 4), ToastPosition position = ToastPosition.topCenter, double? maxWidth}) → void
warning({required BuildContext context, String? title, required String message, Duration duration = const Duration(seconds: 5), ToastPosition position = ToastPosition.topCenter, double? maxWidth}) → void