From 132d2a7e010d11ab6f23212d70abe7105d50d65e Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Mon, 11 Jan 2021 17:44:14 -0600 Subject: [PATCH] Remove deprecated Typematcher --- packages/flutter/lib/src/widgets/framework.dart | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 91764b32296f4..61110b9d0c064 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -419,23 +419,6 @@ class GlobalObjectKey> extends GlobalKey { } } -/// This class is a work-around for the "is" operator not accepting a variable value as its right operand. -/// -/// This class is deprecated. It will be deleted soon. -// TODO(a14n): Remove this when it goes to stable, https://github.com/flutter/flutter/pull/44189 -@Deprecated( - 'TypeMatcher has been deprecated because it is no longer used in framework(only in deprecated methods). ' - 'This feature was deprecated after v1.12.1.' -) -@optionalTypeArgs -class TypeMatcher { - /// Creates a type matcher for the given type parameter. - const TypeMatcher(); - - /// Returns true if the given object is of type `T`. - bool check(dynamic object) => object is T; -} - /// Describes the configuration for an [Element]. /// /// Widgets are the central class hierarchy in the Flutter framework. A widget