@@ -37,7 +37,7 @@ import 'package:react/src/react_test_utils/internal_test_utils.dart' as itu;
3737/// * For DOM components, this with return the String corresponding to its tagName ('div', 'a', etc.).
3838/// * For custom composite components React.createClass()-based components, this will return the [ReactClass] .
3939@Deprecated ('Use the react_testing_library package instead.' )
40- final getComponentTypeV2 = itu.getComponentTypeV2;
40+ const getComponentTypeV2 = itu.getComponentTypeV2;
4141
4242@Deprecated ('Use the react_testing_library package instead.' )
4343typedef ComponentTestFunction = bool Function (dynamic /* [1] */ component);
@@ -155,17 +155,17 @@ external dynamic /* [1] */ _findRenderedComponentWithType(/* [1] */ tree, dynami
155155/// Returns true if element is a composite component.
156156/// (created with React.createClass()).
157157@Deprecated ('Use the react_testing_library package instead.' )
158- final isCompositeComponent = itu.isCompositeComponent;
158+ const isCompositeComponent = itu.isCompositeComponent;
159159
160160/// Returns `true` if instance is a custom composite component created using `React.createClass()`
161161/// that is of the [ReactComponentFactoryProxy.type] of the provided [componentFactory] .
162162@Deprecated ('Use the react_testing_library package instead.' )
163- final isCompositeComponentWithTypeV2 = itu.isCompositeComponentWithTypeV2;
163+ const isCompositeComponentWithTypeV2 = itu.isCompositeComponentWithTypeV2;
164164
165165/// Returns true if instance is a DOM component (such as a <div> or <span>).
166166@JS ('React.addons.TestUtils.isDOMComponent' )
167167@Deprecated ('Use the react_testing_library package instead.' )
168- final isDOMComponent = itu.isDOMComponent;
168+ const isDOMComponent = itu.isDOMComponent;
169169
170170/// Returns true if [object] is a valid React component.
171171@JS ('React.addons.TestUtils.isElement' )
@@ -175,7 +175,7 @@ external bool isElement(dynamic object);
175175/// Returns `true` if [element] is a [ReactElement]
176176/// that is of the [ReactComponentFactoryProxy.type] of the provided [componentFactory] .
177177@Deprecated ('Use the react_testing_library package instead.' )
178- final isElementOfTypeV2 = itu.isElementOfTypeV2;
178+ const isElementOfTypeV2 = itu.isElementOfTypeV2;
179179
180180@JS ('React.addons.TestUtils.scryRenderedComponentsWithType' )
181181external List <dynamic > /* [1] */ _scryRenderedComponentsWithType (/* [1] */ tree, dynamic type);
0 commit comments