blob: f9a6aca9624030fec7b30a8a7117a9ae5fd64544 [file] [log] [blame]
// 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 'package:meta/meta.dart';
/// Whether the windowing feature is enabled for the current
/// application.
///
/// Do not use this API. Flutter will make breaking changes
/// to this API, even in patch versions.
///
/// If this returns `false`, `@internal` APIs in the following
/// files will throw an `UnsupportedError`:
///
/// 1. packages/flutter/lib/src/widgets/_window.dart
/// 2. packages/flutter/lib/src/widgets/_window_io.dart
/// 3. packages/flutter/lib/src/widgets/_window_web.dart
/// 4. packages/flutter/lib/src/widgets/_window_win32.dart
///
/// See: https://github.com/flutter/flutter/issues/30701.
@internal
bool isWindowingEnabled = debugEnabledFeatureFlags.contains('windowing');
/// The feature flags this app was built with.
///
/// Do not use this API. Flutter can and will make breaking changes to this API.
@internal
final Set<String> debugEnabledFeatureFlags = <String>{
...const String.fromEnvironment('FLUTTER_ENABLED_FEATURE_FLAGS').split(','),
};