mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Before this, we had several places where an isReleaseMode was defined, all with the same definition. This just makes it more broadly visible to allow our users to use it, as well as creating debug and profile versions, and adding a device lab test for it. Since this is a const value, this makes it possible for a developer to easily mark blocks that can be removed at AOT compile time.
55 lines
1.6 KiB
Dart
55 lines
1.6 KiB
Dart
// Copyright 2016 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.
|
|
|
|
/// Core Flutter framework primitives.
|
|
///
|
|
/// The features defined in this library are the lowest-level utility
|
|
/// classes and functions used by all the other layers of the Flutter
|
|
/// framework.
|
|
library foundation;
|
|
|
|
export 'package:meta/meta.dart' show
|
|
immutable,
|
|
mustCallSuper,
|
|
optionalTypeArgs,
|
|
protected,
|
|
required,
|
|
visibleForTesting;
|
|
|
|
// Examples can assume:
|
|
// String _name;
|
|
// bool _first;
|
|
// bool _lights;
|
|
// bool _visible;
|
|
// bool inherit;
|
|
// int columns;
|
|
// int rows;
|
|
// class Cat { }
|
|
// double _volume;
|
|
// dynamic _calculation;
|
|
// dynamic _last;
|
|
// dynamic _selection;
|
|
|
|
export 'src/foundation/annotations.dart';
|
|
export 'src/foundation/assertions.dart';
|
|
export 'src/foundation/basic_types.dart';
|
|
export 'src/foundation/binding.dart';
|
|
export 'src/foundation/change_notifier.dart';
|
|
export 'src/foundation/collections.dart';
|
|
export 'src/foundation/consolidate_response.dart';
|
|
export 'src/foundation/constants.dart';
|
|
export 'src/foundation/debug.dart';
|
|
export 'src/foundation/diagnostics.dart';
|
|
export 'src/foundation/isolates.dart';
|
|
export 'src/foundation/key.dart';
|
|
export 'src/foundation/licenses.dart';
|
|
export 'src/foundation/node.dart';
|
|
export 'src/foundation/observer_list.dart';
|
|
export 'src/foundation/platform.dart';
|
|
export 'src/foundation/print.dart';
|
|
export 'src/foundation/profile.dart';
|
|
export 'src/foundation/serialization.dart';
|
|
export 'src/foundation/synchronous_future.dart';
|
|
export 'src/foundation/unicode.dart';
|