| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| import 'package:flutter/gestures.dart'; |
| export 'dart:ui' show Point; |
| TestPointer([ this.pointer = 1 ]); |
| PointerDownEvent down(Point newLocation, { Duration timeStamp: const Duration() }) { |
| return new PointerDownEvent( |
| PointerMoveEvent move(Point newLocation, { Duration timeStamp: const Duration() }) { |
| Offset delta = newLocation - location; |
| return new PointerMoveEvent( |
| PointerUpEvent up({ Duration timeStamp: const Duration() }) { |
| return new PointerUpEvent( |
| PointerCancelEvent cancel({ Duration timeStamp: const Duration() }) { |
| return new PointerCancelEvent( |