blob: 0f7839cb24222f293a29ae83ca1a040a4c14152f [file] [log] [blame]
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:meta/meta.dart';
import '../base/platform.dart';
import '../doctor.dart';
import '../features.dart';
class WebWorkflow extends Workflow {
const WebWorkflow({
@required Platform platform,
@required FeatureFlags featureFlags,
}) : _platform = platform,
_featureFlags = featureFlags;
final Platform _platform;
final FeatureFlags _featureFlags;
bool get appliesToHostPlatform => _featureFlags.isWebEnabled &&
(_platform.isWindows ||
_platform.isMacOS ||
bool get canLaunchDevices => _featureFlags.isWebEnabled;
bool get canListDevices => _featureFlags.isWebEnabled;
bool get canListEmulators => false;