copyWith method
ToastSpec
copyWith({
- FlexBoxSpec? container,
- FlexBoxSpec? titleSubtitleContainer,
- TextSpec? title,
- TextSpec? subtitle,
- WidgetModifiersData? modifiers,
- AnimatedData? animated,
inherited
Creates a copy of this ToastSpec but with the given fields replaced with the new values.
Implementation
@override
ToastSpec copyWith({
FlexBoxSpec? container,
FlexBoxSpec? titleSubtitleContainer,
TextSpec? title,
TextSpec? subtitle,
WidgetModifiersData? modifiers,
AnimatedData? animated,
}) {
return ToastSpec(
container: container ?? _$this.container,
titleSubtitleContainer:
titleSubtitleContainer ?? _$this.titleSubtitleContainer,
title: title ?? _$this.title,
subtitle: subtitle ?? _$this.subtitle,
modifiers: modifiers ?? _$this.modifiers,
animated: animated ?? _$this.animated,
);
}