mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
32 lines
925 B
Dart
32 lines
925 B
Dart
// 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 '../desktop.dart';
|
|
import '../doctor.dart';
|
|
|
|
/// The [WindowsWorkflow] instance.
|
|
WindowsWorkflow get windowsWorkflow => context.get<WindowsWorkflow>();
|
|
|
|
/// The windows-specific implementation of a [Workflow].
|
|
///
|
|
/// This workflow requires the flutter-desktop-embedding as a sibling
|
|
/// repository to the flutter repo.
|
|
class WindowsWorkflow implements Workflow {
|
|
const WindowsWorkflow();
|
|
|
|
@override
|
|
bool get appliesToHostPlatform => platform.isWindows;
|
|
|
|
@override
|
|
bool get canLaunchDevices => platform.isWindows && flutterDesktopEnabled;
|
|
|
|
@override
|
|
bool get canListDevices => platform.isWindows && flutterDesktopEnabled;
|
|
|
|
@override
|
|
bool get canListEmulators => false;
|
|
}
|