"Fossies" - the Fresh Open Source Software Archive

Member "flutter-1.22.4/packages/flutter_tools/lib/src/web/web_runner.dart" (13 Nov 2020, 875 Bytes) of package /linux/misc/flutter-1.22.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Dart source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // Copyright 2014 The Flutter Authors. All rights reserved.
    2 // Use of this source code is governed by a BSD-style license that can be
    3 // found in the LICENSE file.
    4 
    5 import 'package:meta/meta.dart';
    6 
    7 import '../base/context.dart';
    8 import '../base/net.dart';
    9 import '../device.dart';
   10 import '../project.dart';
   11 import '../resident_runner.dart';
   12 
   13 WebRunnerFactory get webRunnerFactory => context.get<WebRunnerFactory>();
   14 
   15 // Hack to hide web imports for google3.
   16 abstract class WebRunnerFactory {
   17   const WebRunnerFactory();
   18 
   19   /// Create a [ResidentRunner] for the web.
   20   ResidentRunner createWebRunner(
   21     FlutterDevice device, {
   22     String target,
   23     @required bool stayResident,
   24     @required FlutterProject flutterProject,
   25     @required bool ipv6,
   26     @required DebuggingOptions debuggingOptions,
   27     @required UrlTunneller urlTunneller,
   28     bool machine = false,
   29   });
   30 }