_binding_web.dart 590 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
import 'package:flutter/widgets.dart';
6

7
import 'binding.dart';
8

9 10 11
/// Ensure the appropriate test binding is initialized.
TestWidgetsFlutterBinding ensureInitialized([@visibleForTesting Map<String, String>? environment]) {
  return AutomatedTestWidgetsFlutterBinding.ensureInitialized();
12 13
}

14
/// This method is a noop on the web.
15 16
void setupHttpOverrides() { }

17
/// This method is a noop on the web.
18
void mockFlutterAssets() { }