ToastificationThemeData class

A class that defines the theming data for Toastification widgets.

This class holds various styling and behavioral properties that can be used to customize the appearance and functionality of toast notifications.

Constructors

ToastificationThemeData({BaseStandardToastStyle? toastStyle, required ThemeData flutterTheme, required TextDirection direction, bool showProgressBar = false, bool applyBlurEffect = false, bool showIcon = true})
Creates a new instance of ToastificationThemeData.
const

Properties

applyBlurEffect bool
Whether to apply a blur effect to the toast background.
final
direction TextDirection
The text direction to be used for the toast content.
final
flutterTheme ThemeData
The base Flutter theme data used for general styling.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showIcon bool
Whether to display an icon in the toast.
final
showProgressBar bool
Whether to display a progress indicator in the toast.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
toastStyle BaseStandardToastStyle?
Defines the visual style and appearance of the toast notification.
final

Methods

copyWith({BaseStandardToastStyle? toastStyle, TextDirection? direction, bool? showProgressBar, bool? applyBlurEffect, bool? showIcon, ProgressIndicatorThemeData? progressIndicatorTheme}) ToastificationThemeData
Creates a copy of this theme data with the given fields replaced with new values.
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