linux_workflow.dart 1.04 KB
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
import 'package:meta/meta.dart';

7
import '../base/platform.dart';
8
import '../doctor.dart';
9
import '../features.dart';
10 11 12 13 14 15

/// 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 {
16 17 18 19 20 21 22 23
  const LinuxWorkflow({
    @required Platform platform,
    @required FeatureFlags featureFlags,
  }) : _platform = platform,
       _featureFlags = featureFlags;

  final Platform _platform;
  final FeatureFlags _featureFlags;
24 25

  @override
26
  bool get appliesToHostPlatform => _platform.isLinux && _featureFlags.isLinuxEnabled;
27 28

  @override
29
  bool get canLaunchDevices => _platform.isLinux && _featureFlags.isLinuxEnabled;
30 31

  @override
32
  bool get canListDevices => _platform.isLinux && _featureFlags.isLinuxEnabled;
33 34 35 36

  @override
  bool get canListEmulators => false;
}