Unverified Commit 3f9c0e74 authored by Callum Moffat's avatar Callum Moffat Committed by GitHub

PointerDeviceKind forwards-compatibility in flutter_test (#98202)

parent a50120aa
......@@ -34,6 +34,8 @@ class TestPointer {
case PointerDeviceKind.invertedStylus:
case PointerDeviceKind.touch:
case PointerDeviceKind.unknown:
default: // ignore: no_default_cases, to allow adding new device types to [PointerDeviceKind]
// TODO(moffatman): Remove after landing https://github.com/flutter/flutter/issues/23604
_device = device ?? 0;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment