Add _PointerState#toString (#16197)
This method makes it easier to debug issues involving broken pointer states.
This commit is contained in:
@@ -29,6 +29,11 @@ class _PointerState {
|
||||
}
|
||||
|
||||
Offset lastPosition;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return '_PointerState(pointer: $pointer, down: $down, lastPosition: $lastPosition)';
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts from engine pointer data to framework pointer events.
|
||||
|
||||
Reference in New Issue
Block a user