copyWith method
ToastificationThemeData
copyWith({
- BaseStandardToastStyle? toastStyle,
- TextDirection? direction,
- bool? showProgressBar,
- bool? applyBlurEffect,
- bool? showIcon,
- ProgressIndicatorThemeData? progressIndicatorTheme,
Creates a copy of this theme data with the given fields replaced with new values.
This method is useful for creating variations of the existing theme while maintaining the values of unspecified fields.
Implementation
ToastificationThemeData copyWith({
BaseStandardToastStyle? toastStyle,
TextDirection? direction,
bool? showProgressBar,
bool? applyBlurEffect,
bool? showIcon,
ProgressIndicatorThemeData? progressIndicatorTheme,
}) {
return ToastificationThemeData(
toastStyle: toastStyle ?? this.toastStyle,
flutterTheme: flutterTheme,
direction: direction ?? this.direction,
showProgressBar: showProgressBar ?? this.showProgressBar,
applyBlurEffect: applyBlurEffect ?? this.applyBlurEffect,
showIcon: showIcon ?? this.showIcon,
);
}