ToastlyConfig class

Implemented types

Constructors

ToastlyConfig.new({required Widget message, ToastAnimationType animationType = ToastAnimationType.scaleIn, bool autoDismiss = true, bool shouldShowProgressBar = false, Alignment alignment = Alignment.bottomCenter, Widget? icon, Color? backgroundColor, EdgeInsetsGeometry? padding, double? elevation, Widget? closeItem, int? dismissInSeconds, BorderRadius? borderRadius, Color? progressBarColor, double? progressBarHeight, Alignment? progressBarAlignment})

Properties

alignment Alignment
The alignment of the toast on the screen.
final
animationType ToastAnimationType
The animation style used when showing and hiding the toast.
getter/setter pairoverride-getter
autoDismiss bool
Whether the toast should automatically dismiss after a duration.
final
backgroundColor Color?
The background color of the toast container.
final
borderRadius BorderRadius?
The border radius of the toast container.
getter/setter pairoverride-getter
closeItem Widget?
A widget displayed for manually dismissing the toast.
getter/setter pairoverride-getter
dismissInSeconds int?
The number of seconds to wait before dismissing the toast.
getter/setter pairoverride-getter
elevation double?
Elevation (shadow) of the toast container.
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
An optional widget displayed before the message, typically an icon.
final
message Widget
The main widget displayed in the toast.
final
padding EdgeInsetsGeometry?
Padding around the toast container.
final
progressBarAlignment Alignment?
Alignment of the progress bar inside the toast container.
getter/setter pairoverride-getter
progressBarColor Color?
Color of the progress bar.
getter/setter pairoverride-getter
progressBarHeight double?
Height of the progress bar.
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldShowProgressBar bool
Whether to show a progress bar indicating time until dismissal.
getter/setter pairoverride-getter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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