blob: bfaaa9d9c32ce054cf547babb7e88e5c70b7b21c [file] [log] [blame] [edit]
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:async/async.dart';
import '../environment.dart';
/// The default environment for platform plugins.
class PluginEnvironment implements Environment {
final supportsDebugging = false;
Stream get onRestart => new StreamController.broadcast().stream;
const PluginEnvironment();
Uri get observatoryUrl => null;
Uri get remoteDebuggerUrl => null;
String get isolateID => null;
CancelableOperation displayPause() =>
throw new UnsupportedError(
"PluginEnvironment.displayPause is not supported.");
}