computePanSlop function Null safety
- PointerDeviceKind kind
Determine the approriate pan slop pixels based on the kind
of pointer.
Implementation
double computePanSlop(PointerDeviceKind kind) {
switch (kind) {
case PointerDeviceKind.mouse:
return kPrecisePointerPanSlop;
case PointerDeviceKind.stylus:
case PointerDeviceKind.invertedStylus:
case PointerDeviceKind.unknown:
case PointerDeviceKind.touch:
return kPanSlop;
}
}