defaultBehavior property
Return the default values for all the defined properties of a touch ripple.
See also:
- The values of all properties of the returned instance must be defined and not null.
- The value is not directly referenced externally.
Example:
@override
TouchRippleBehavior get defaultBehavior => TouchRippleBehavior(
overlap: TouchRippleOverlapBehavior.overlappable,
// ... All property values are defined.
);
Implementation
@override
TouchRippleBehavior get defaultBehavior => const TouchRippleBehavior(
overlap: TouchRippleOverlapBehavior.overlappable,
lowerPercent: 0.3,
upperPercent: 1,
fadeLowerPercent: 0,
fadeUpperPercent: 1,
eventCallBackableMinPercent: null,
spreadDuration: Duration(milliseconds: 250),
spreadCurve: Curves.ease,
fadeInDuration: Duration(milliseconds: 100),
fadeInCurve: Curves.easeOut,
fadeOutDuration: Duration(milliseconds: 200),
fadeOutCurve: Curves.easeIn,
canceledDuration: Duration(milliseconds: 50),
canceledCurve: null,
);