copyWith method

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