copyWith method

ToastTheme copyWith({
  1. ToastLocation? location,
  2. Duration? entryDuration,
  3. Duration? showDuration,
})

Implementation

ToastTheme copyWith({
  ToastLocation? location,
  Duration? entryDuration,
  Duration? showDuration,
}) {
  return ToastTheme(
    location: location ?? this.location,
    entryDuration: entryDuration ?? this.entryDuration,
    showDuration: showDuration ?? this.showDuration,
  );
}