gesture_tester.dart 477 Bytes
Newer Older
1 2 3 4
// 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.

5
import 'package:flutter/foundation.dart';
6 7
import 'package:flutter/gestures.dart';

8
class TestGestureFlutterBinding extends BindingBase with GestureBinding { }
9

10 11
void ensureGestureBinding() {
  if (GestureBinding.instance == null)
12
    new TestGestureFlutterBinding();
13
  assert(GestureBinding.instance != null);
14
}