copyWith method

TapSpec copyWith({
  1. bool? tappable,
  2. bool? providesFeedback,
  3. Color? inkSplashColor,
  4. Color? inkHighlightColor,
  5. 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,
    );