Skip to content

Commit 298c874

Browse files
authored
Fix classes that shouldn't be extended/instantiated/mixedin (#120409)
1 parent 858f94c commit 298c874

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ part of material_animated_icons; // ignore: use_string_in_part_of_directives
2525
///
2626
/// * [Icons], for the list of available static Material Icons.
2727
abstract class AnimatedIcons {
28+
// This class is not meant to be instantiated or extended; this constructor
29+
// prevents instantiation and extension.
30+
AnimatedIcons._();
2831

2932
/// The Material Design add to event icon animation.
3033
///

packages/flutter/lib/src/material/material_state.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ class _MaterialStateUnderlineInputBorder extends MaterialStateUnderlineInputBord
632632
///
633633
/// {@macro flutter.material.MaterialStateProperty.implementations}
634634
abstract class MaterialStateProperty<T> {
635-
636635
/// Returns a value of type `T` that depends on [states].
637636
///
638637
/// Widgets like [TextButton] and [ElevatedButton] apply this method to their

packages/flutter_driver/lib/src/extension/extension.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ abstract class FinderExtension {
255255
/// See also:
256256
/// * [CommandWithTarget], a base class for [Command]s with [Finder]s.
257257
abstract class CommandExtension {
258-
259258
/// Identifies the type of command to be used by the driver extension.
260259
String get commandKind;
261260

0 commit comments

Comments
 (0)