copyWith method

ButtonSplashStyle copyWith({
  1. ButtonSplashType? type,
  2. Color? splashColor,
  3. Color? highlightColor,
  4. double? splashOpacity,
  5. double? highlightOpacity,
  6. BorderRadius? borderRadius,
  7. bool? bounded,
  8. Duration? animationDuration,
  9. InteractiveInkFeatureFactory? splashFactory,
  10. WidgetStateProperty<Color?>? overlayColor,
})

Create a copy with modified properties

Implementation

ButtonSplashStyle copyWith({
  ButtonSplashType? type,
  Color? splashColor,
  Color? highlightColor,
  double? splashOpacity,
  double? highlightOpacity,
  BorderRadius? borderRadius,
  bool? bounded,
  Duration? animationDuration,
  InteractiveInkFeatureFactory? splashFactory,
  WidgetStateProperty<Color?>? overlayColor,
}) {
  return ButtonSplashStyle._(
    type: type ?? this.type,
    splashColor: splashColor ?? this.splashColor,
    highlightColor: highlightColor ?? this.highlightColor,
    splashOpacity: splashOpacity ?? this.splashOpacity,
    highlightOpacity: highlightOpacity ?? this.highlightOpacity,
    borderRadius: borderRadius ?? this.borderRadius,
    bounded: bounded ?? this.bounded,
    animationDuration: animationDuration ?? this.animationDuration,
    splashFactory: splashFactory ?? this.splashFactory,
    overlayColor: overlayColor ?? this.overlayColor,
  );
}