Line data Source code
1 : // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 : // for details. All rights reserved. Use of this source code is governed by a
3 : // BSD-style license that can be found in the LICENSE file.
4 :
5 : import 'dart:async';
6 :
7 : import 'package:async/async.dart';
8 :
9 : import '../environment.dart';
10 :
11 : /// The default environment for platform plugins.
12 : class PluginEnvironment implements Environment {
13 : final supportsDebugging = false;
14 0 : Stream get onRestart => new StreamController.broadcast().stream;
15 :
16 5 : const PluginEnvironment();
17 :
18 : Uri get observatoryUrl => null;
19 :
20 : Uri get remoteDebuggerUrl => null;
21 :
22 0 : CancelableOperation displayPause() => throw new UnsupportedError(
23 : "PluginEnvironment.displayPause is not supported.");
24 : }
|