linux_workflow.dart 953 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2018 The Chromium 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 '../base/context.dart';
import '../base/platform.dart';
import '../doctor.dart';
8
import '../features.dart';
9 10

/// The [WindowsWorkflow] instance.
11
LinuxWorkflow get linuxWorkflow => context.get<LinuxWorkflow>();
12 13 14 15 16 17 18 19 20

/// The windows-specific implementation of a [Workflow].
///
/// This workflow requires the flutter-desktop-embedding as a sibling
/// repository to the flutter repo.
class LinuxWorkflow implements Workflow {
  const LinuxWorkflow();

  @override
21
  bool get appliesToHostPlatform => platform.isLinux && featureFlags.isLinuxEnabled;
22 23

  @override
24
  bool get canLaunchDevices => platform.isLinux && featureFlags.isLinuxEnabled;
25 26

  @override
27
  bool get canListDevices => platform.isLinux && featureFlags.isLinuxEnabled;
28 29 30 31

  @override
  bool get canListEmulators => false;
}