doc imports for enum values (#151548)
To verify that a9e6fefa91 works.
Part of https://github.com/flutter/flutter/issues/150800.
This commit is contained in:
committed by
GitHub
parent
bb637f3128
commit
a1bd8434b5
@@ -15,6 +15,10 @@
|
||||
/// * Use the [TextPainter] class for painting text.
|
||||
/// * Use [Decoration] (and more concretely [BoxDecoration]) for
|
||||
/// painting boxes.
|
||||
///
|
||||
/// @docImport 'src/painting/box_decoration.dart';
|
||||
/// @docImport 'src/painting/decoration.dart';
|
||||
/// @docImport 'src/painting/text_painter.dart';
|
||||
library painting;
|
||||
|
||||
export 'dart:ui' show PlaceholderAlignment, Shadow, TextHeightBehavior, TextLeadingDistribution, kTextHeightNone;
|
||||
|
||||
@@ -19,6 +19,15 @@
|
||||
/// [ServicesBinding], [GestureBinding], [SchedulerBinding], [PaintingBinding],
|
||||
/// and [RendererBinding]. The rendering library does not automatically create a
|
||||
/// binding, but relies on one being initialized with those features.
|
||||
///
|
||||
/// @docImport 'package:flutter/foundation.dart';
|
||||
/// @docImport 'package:flutter/gestures.dart';
|
||||
/// @docImport 'package:flutter/scheduler.dart';
|
||||
/// @docImport 'package:flutter/services.dart';
|
||||
///
|
||||
/// @docImport 'src/rendering/binding.dart';
|
||||
/// @docImport 'src/rendering/box.dart';
|
||||
/// @docImport 'src/rendering/object.dart';
|
||||
library rendering;
|
||||
|
||||
export 'package:flutter/foundation.dart' show
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'package:flutter/widgets.dart';
|
||||
/// @docImport 'package:flutter/material.dart';
|
||||
///
|
||||
/// @docImport 'button.dart';
|
||||
/// @docImport 'nav_bar.dart';
|
||||
@@ -68,7 +68,7 @@ abstract final class CupertinoColors {
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [material.Colors.white], the same color, in the Material Design palette.
|
||||
/// * [Colors.white], the same color, in the Material Design palette.
|
||||
/// * [black], opaque black in the [CupertinoColors] palette.
|
||||
static const Color white = Color(0xFFFFFFFF);
|
||||
|
||||
@@ -78,7 +78,7 @@ abstract final class CupertinoColors {
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [material.Colors.black], the same color, in the Material Design palette.
|
||||
/// * [Colors.black], the same color, in the Material Design palette.
|
||||
/// * [white], opaque white in the [CupertinoColors] palette.
|
||||
static const Color black = Color(0xFF000000);
|
||||
|
||||
@@ -86,7 +86,7 @@ abstract final class CupertinoColors {
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [material.Colors.transparent], the same color, in the Material Design palette.
|
||||
/// * [Colors.transparent], the same color, in the Material Design palette.
|
||||
static const Color transparent = Color(0x00000000);
|
||||
|
||||
/// Used in iOS 10 for light background fills such as the chat bubble background.
|
||||
|
||||
@@ -14,7 +14,7 @@ class BitField<T extends dynamic> implements bitfield.BitField<T> {
|
||||
: assert(_length <= _smiBits),
|
||||
_bits = _allZeros;
|
||||
|
||||
/// The dart:io implementation of [bitfield.Bitfield.filled].
|
||||
/// The dart:io implementation of [bitfield.BitField.filled].
|
||||
BitField.filled(this._length, bool value)
|
||||
: assert(_length <= _smiBits),
|
||||
_bits = value ? _allOnes : _allZeros;
|
||||
|
||||
@@ -20,7 +20,7 @@ class BitField<T extends dynamic> implements bitfield.BitField<T> {
|
||||
// ignore: avoid_unused_constructor_parameters
|
||||
BitField(int length);
|
||||
|
||||
/// The web implementation of [bitfield.Bitfield.filled].
|
||||
/// The web implementation of [bitfield.BitField.filled].
|
||||
// Can remove when we have metaclasses.
|
||||
// ignore: avoid_unused_constructor_parameters
|
||||
BitField.filled(int length, bool value);
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'dart:ui';
|
||||
///
|
||||
/// @docImport 'binding.dart';
|
||||
/// @docImport 'debug.dart';
|
||||
/// @docImport 'platform.dart';
|
||||
library;
|
||||
|
||||
/// Service extension constants for the foundation library.
|
||||
///
|
||||
/// These constants will be used when registering service extensions in the
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'dart:ui';
|
||||
library;
|
||||
|
||||
import 'dart:typed_data';
|
||||
import 'dart:ui' as ui show Codec, FrameInfo, Image, ImmutableBuffer;
|
||||
|
||||
@@ -16,7 +19,7 @@ import 'binding.dart';
|
||||
/// If the image is animated, this returns the first frame. Consider
|
||||
/// [instantiateImageCodec] if support for animated images is necessary.
|
||||
///
|
||||
/// This function differs from [ui.decodeImageFromList] in that it defers to
|
||||
/// This function differs from [decodeImageFromList] in that it defers to
|
||||
/// [PaintingBinding.instantiateImageCodecWithSize], and therefore can be mocked
|
||||
/// in tests.
|
||||
Future<ui.Image> decodeImageFromList(Uint8List bytes) async {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'package:flutter/widgets.dart';
|
||||
/// @docImport 'package:flutter/material.dart';
|
||||
library;
|
||||
|
||||
import 'dart:collection';
|
||||
@@ -73,7 +73,7 @@ const String _kColorBackgroundWarning = 'Cannot provide both a backgroundColor a
|
||||
/// ### Opacity and Color
|
||||
///
|
||||
/// Each line here is progressively more opaque. The base color is
|
||||
/// [material.Colors.black], and [Color.withOpacity] is used to create a
|
||||
/// [Colors.black], and [Color.withOpacity] is used to create a
|
||||
/// derivative color with the desired opacity. The root [TextSpan] for this
|
||||
/// [RichText] widget is explicitly given the ambient [DefaultTextStyle], since
|
||||
/// [RichText] does not do that automatically. The inner [TextStyle] objects are
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'binding.dart';
|
||||
library;
|
||||
|
||||
/// Service extension constants for the scheduler library.
|
||||
///
|
||||
/// These constants will be used when registering service extensions in the
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'binding.dart';
|
||||
/// @docImport 'debug.dart';
|
||||
library;
|
||||
|
||||
/// Service extension constants for the services library.
|
||||
///
|
||||
/// These constants will be used when registering service extensions in the
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'package:flutter/painting.dart';
|
||||
library;
|
||||
|
||||
import 'dart:ui';
|
||||
|
||||
/// Returns a [Codec] that throws on all member invocations.
|
||||
|
||||
@@ -2072,7 +2072,7 @@ class TestAction extends CallbackAction<Intent> {
|
||||
/// An activator that accepts down events that has [key] as the logical key.
|
||||
///
|
||||
/// This class is used only to tests. It is intentionally designed poorly by
|
||||
/// returning null in [triggers], and checks [key] in [acceptsEvent].
|
||||
/// returning null in [triggers], and checks [key] in [accepts].
|
||||
class DumbLogicalActivator extends ShortcutActivator {
|
||||
const DumbLogicalActivator(this.key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user