This reverts commit 727e7e829f.
This commit is contained in:
@@ -22,14 +22,9 @@ class TestPointer {
|
||||
///
|
||||
/// Multiple [TestPointer]s created with the same pointer identifier will
|
||||
/// interfere with each other if they are used in parallel.
|
||||
TestPointer([
|
||||
this.pointer = 1,
|
||||
this.kind = PointerDeviceKind.touch,
|
||||
this.buttons = kPrimaryButton,
|
||||
])
|
||||
TestPointer([this.pointer = 1, this.kind = PointerDeviceKind.touch])
|
||||
: assert(kind != null),
|
||||
assert(pointer != null),
|
||||
assert(buttons != null);
|
||||
assert(pointer != null);
|
||||
|
||||
/// The pointer identifier used for events generated by this object.
|
||||
///
|
||||
@@ -40,10 +35,6 @@ class TestPointer {
|
||||
/// [PointerDeviceKind.touch].
|
||||
final PointerDeviceKind kind;
|
||||
|
||||
/// The kind of buttons to simulate on Down and Move events. Defaults to
|
||||
/// [kPrimaryButton].
|
||||
int buttons;
|
||||
|
||||
/// Whether the pointer simulated by this object is currently down.
|
||||
///
|
||||
/// A pointer is released (goes up) by calling [up] or [cancel].
|
||||
@@ -90,7 +81,6 @@ class TestPointer {
|
||||
kind: kind,
|
||||
pointer: pointer,
|
||||
position: location,
|
||||
buttons: buttons,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -115,7 +105,6 @@ class TestPointer {
|
||||
pointer: pointer,
|
||||
position: newLocation,
|
||||
delta: delta,
|
||||
buttons: buttons,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user