diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 9f6ef2e909..2feb53a2e7 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -55,20 +55,20 @@ export 'package:flutter/rendering.dart' show RenderBox, RenderObject, debugDumpL // Future getApplicationDocumentsDirectory() async => Directory(''); // late AnimationController animation; -// An annotation used by test_analysis package to verify patterns are followed -// that allow for tree-shaking of both fields and their initializers. This -// annotation has no impact on code by itself, but indicates the following pattern -// should be followed for a given field: -// -// ```dart -// class Foo { -// final bar = kDebugMode ? Object() : null; -// } -// ``` class _DebugOnly { const _DebugOnly(); } +/// An annotation used by test_analysis package to verify patterns are followed +/// that allow for tree-shaking of both fields and their initializers. This +/// annotation has no impact on code by itself, but indicates the following pattern +/// should be followed for a given field: +/// +/// ```dart +/// class Bar { +/// final Object? bar = kDebugMode ? Object() : null; +/// } +/// ``` const _DebugOnly _debugOnly = _DebugOnly(); // KEYS