blob: 40e88b26ec9311304f8ee5c3ed40eac9a8076a16 [file] [log] [blame]
// 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 {
@override
final supportsDebugging = false;
@override
Stream get onRestart => StreamController.broadcast().stream;
const PluginEnvironment();
@override
Uri get observatoryUrl => null;
@override
Uri get remoteDebuggerUrl => null;
@override
CancelableOperation displayPause() => throw UnsupportedError(
'PluginEnvironment.displayPause is not supported.');
}