tapMoveSlop static method
The distance a button needs to be moved after being pressed for its opacity to change.
The opacity changes when the position moved is this distance away from the button.
Implementation
static double tapMoveSlop() {
return switch (defaultTargetPlatform) {
TargetPlatform.iOS ||
TargetPlatform.android ||
TargetPlatform.fuchsia => kCupertinoButtonTapMoveSlop,
TargetPlatform.macOS || TargetPlatform.linux || TargetPlatform.windows => 0.0,
};
}