splashColor property

  1. @Deprecated('Use RippleTapMechanic in tapMechanics instead')
Color? splashColor
final

@deprecated Use RippleTapMechanic in tapMechanics instead.

Example:

// Old way (deprecated):
Tappable(
  onTap: () {},
  splashColor: Colors.blue,
  child: Text('Tap me'),
)

// New way:
Tappable(
  onTap: () {},
  tapMechanics: [
    RippleTapMechanic(splashColor: Colors.blue),
  ],
  child: Text('Tap me'),
)

Implementation

@Deprecated('Use RippleTapMechanic in tapMechanics instead')
final Color? splashColor;