copyWith method

ToastCloseButton copyWith({
  1. CloseButtonShowType? showType,
  2. CloseButtonBuilder? buttonBuilder,
})

Implementation

ToastCloseButton copyWith({
  CloseButtonShowType? showType,
  CloseButtonBuilder? buttonBuilder,
}) {
  return ToastCloseButton(
    showType: showType ?? this.showType,
    buttonBuilder: buttonBuilder ?? this.buttonBuilder,
  );
}