copyWith method

  1. @override
ToastSpec copyWith({
  1. FlexBoxSpec? container,
  2. FlexBoxSpec? titleSubtitleContainer,
  3. TextSpec? title,
  4. TextSpec? subtitle,
  5. WidgetModifiersData? modifiers,
  6. 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,
  );
}