resistance property

double resistance
final

The resistance factor to apply to the drag offset.

Controls how "sticky" the drag feels. Higher values create more resistance, making the button feel heavier and more sluggish. Lower values make it feel lighter and more responsive.

Uses non-linear damping that increases with distance from the rest position.

Defaults to 0.08.

Implementation

final double resistance;