copyWith method
ButtonSplashStyle
copyWith({
- ButtonSplashType? type,
- Color? splashColor,
- Color? highlightColor,
- double? splashOpacity,
- double? highlightOpacity,
- BorderRadius? borderRadius,
- bool? bounded,
- Duration? animationDuration,
- InteractiveInkFeatureFactory? splashFactory,
- 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,
);
}