Skip to content

Commit ee54a72

Browse files
authored
Remove typematcher again (flutter#76331)
1 parent 75ad491 commit ee54a72

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

packages/flutter/lib/src/widgets/framework.dart

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -258,27 +258,6 @@ class GlobalObjectKey<T extends State<StatefulWidget>> extends GlobalKey<T> {
258258
}
259259
}
260260

261-
/// This class is a work-around for the "is" operator not accepting a variable value as its right operand.
262-
///
263-
/// This class is deprecated. It will be deleted soon.
264-
// TODO(a14n): Remove this when it goes to stable, https://github.com/flutter/flutter/pull/44189
265-
@Deprecated(
266-
'TypeMatcher has been deprecated because it is no longer used in framework(only in deprecated methods). '
267-
'This feature was deprecated after v1.12.1.'
268-
)
269-
@optionalTypeArgs
270-
class TypeMatcher<T> {
271-
/// Creates a type matcher for the given type parameter.
272-
@Deprecated(
273-
'TypeMatcher has been deprecated because it is no longer used in framework(only in deprecated methods). '
274-
'This feature was deprecated after v1.12.1.'
275-
)
276-
const TypeMatcher();
277-
278-
/// Returns true if the given object is of type `T`.
279-
bool check(dynamic object) => object is T;
280-
}
281-
282261
/// Describes the configuration for an [Element].
283262
///
284263
/// Widgets are the central class hierarchy in the Flutter framework. A widget

0 commit comments

Comments
 (0)