desktop.dart 521 Bytes
Newer Older
1
// Copyright 2019 The Chromium Authors. All rights reserved.
2 3 4 5 6
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'base/platform.dart';

7 8 9 10 11
// Only launch or display desktop embedding devices if
// `FLUTTER_DESKTOP_EMBEDDING` environment variable is set to true.
bool get flutterDesktopEnabled {
  _flutterDesktopEnabled ??= platform.environment['FLUTTER_DESKTOP_EMBEDDING']?.toLowerCase() == 'true';
  return _flutterDesktopEnabled;
12
}
13
bool _flutterDesktopEnabled;