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