/
magnusroot
/
flutter
Обзор
Документация
Войти
/
magnusroot
/
flutter
Код
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/flutter_tools/lib/src/linux/linux_workflow.dart
32 строки
1 KB
Michael Goderbauer
Auto-format Framework (#160545)
19 дек 2024, 23:06
Не верифицирован
19 дек 2024, 23:06
5491c8c
Код
Авторство
О чём код?
// 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 '../base/platform.dart'; import '../doctor_validator.dart'; import '../features.dart'; /// 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({required Platform platform, required FeatureFlags featureFlags}) : _platform = platform, _featureFlags = featureFlags; final Platform _platform; final FeatureFlags _featureFlags; @override bool get appliesToHostPlatform => _platform.isLinux && _featureFlags.isLinuxEnabled; @override bool get canLaunchDevices => _platform.isLinux && _featureFlags.isLinuxEnabled; @override bool get canListDevices => _platform.isLinux && _featureFlags.isLinuxEnabled; @override bool get canListEmulators => false; }