TapSpec class

👆 TapSpec

👆 TapSpec.tappable provides onTap functionality and InkResponse. Ink splash Colors may be customized.

providesFeedback is a convenience parameter to add a HapticFeedback.vibrate onTap.

🌟 Surface comes bundled with 🏓 package:ball.

Disable the default BouncyBall.splashFactory with useThemeSplashFactory or select an InteractiveInkFeatureFactory specific to this 👆 TapSpec with splashFactory.

Mixed in types

Constructors

TapSpec({bool tappable = true, bool providesFeedback = false, Color? inkSplashColor, Color? inkHighlightColor, InteractiveInkFeatureFactory? splashFactory, bool useThemeSplashFactory = false, VoidCallback? onTap})
Not only does 👆 tappable provide onTap Callback functionality, it also adds InkResponse to the Material underneath child.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inkHighlightColor Color?
If tappable == true the InkResponse appearance may be customized.
final
inkSplashColor Color?
If tappable == true the InkResponse appearance may be customized.
final
onTap VoidCallback?
Disabled by tappable == false.
final
providesFeedback bool
Not only does tappable mean the Surface will provide 👆 onTap Callback, it also enables Color parameters inkHighlightColor & inkSplashColor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashFactory InteractiveInkFeatureFactory?
🌟 Surface comes bundled with 🏓 package:ball,
final
tappable bool
Not only does tappable mean the Surface will provide 👆 onTap Callback, it also enables Color parameters inkHighlightColor & inkSplashColor.
final
useThemeSplashFactory bool
🌟 Surface comes bundled with 🏓 package:ball,
final

Methods

copyWith({bool? tappable, bool? providesFeedback, Color? inkSplashColor, Color? inkHighlightColor, InteractiveInkFeatureFactory? splashFactory, bool? useThemeSplashFactory, VoidCallback? onTap}) TapSpec
📋 Returns a copy of this TapSpec with the given properties.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(TapSpec? a, TapSpec? b, double t) TapSpec?
If both are null, returns null.