• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import '../base/context.dart';
6import '../base/platform.dart';
7import '../doctor.dart';
8import '../features.dart';
9
10/// The [MacOSWorkflow] instance.
11MacOSWorkflow get macOSWorkflow => context.get<MacOSWorkflow>();
12
13/// The macOS-specific implementation of a [Workflow].
14///
15/// This workflow requires the flutter-desktop-embedding as a sibling
16/// repository to the flutter repo.
17class MacOSWorkflow implements Workflow {
18  const MacOSWorkflow();
19
20  @override
21  bool get appliesToHostPlatform => platform.isMacOS && featureFlags.isMacOSEnabled;
22
23  @override
24  bool get canLaunchDevices => platform.isMacOS && featureFlags.isMacOSEnabled;
25
26  @override
27  bool get canListDevices => platform.isMacOS && featureFlags.isMacOSEnabled;
28
29  @override
30  bool get canListEmulators => false;
31}
32