copyWith method
TapSpec
copyWith({
- bool? tappable,
- bool? providesFeedback,
- Color? inkSplashColor,
- Color? inkHighlightColor,
- InteractiveInkFeatureFactory? splashFactory,
- bool? useThemeSplashFactory,
- VoidCallback? onTap,
📋 Returns a copy of this TapSpec
with the given properties.
Implementation
TapSpec copyWith({
bool? tappable,
bool? providesFeedback,
Color? inkSplashColor,
Color? inkHighlightColor,
InteractiveInkFeatureFactory? splashFactory,
bool? useThemeSplashFactory,
VoidCallback? onTap,
}) =>
TapSpec(
tappable: tappable ?? this.tappable,
providesFeedback: providesFeedback ?? this.providesFeedback,
inkHighlightColor: inkHighlightColor ?? this.inkHighlightColor,
inkSplashColor: inkSplashColor ?? this.inkSplashColor,
splashFactory: splashFactory ?? this.splashFactory,
useThemeSplashFactory:
useThemeSplashFactory ?? this.useThemeSplashFactory,
onTap: onTap ?? this.onTap,
);