Add doc-import for references to CommonFinders (#156539)

This adds back in the doc comment references for `CommonFinders` that
caused CI issues when @gspencergoog was trying to land
https://github.com/flutter/flutter/pull/149349.

This essentially reverts
a7721fe489.
This commit is contained in:
Sam Rawlins 2024-10-10 20:04:06 -07:00 committed by GitHub
parent 82ebb74c64
commit e1dd322c8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// @docImport 'package:flutter_test/flutter_test.dart';
library;
import 'package:flutter/foundation.dart';
/// An enum identifying standard UI components.
@ -28,8 +31,10 @@ import 'package:flutter/foundation.dart';
/// or fragile to create a reliable test matcher for. It is not (nor should it
/// become) an exhaustive list of standard UI components.
///
/// These are typically used in tests via `find.backButton()` or
/// `find.closeButton()`.
/// See also:
///
/// - [CommonFinders.backButton], which in tests is used as `find.backButton()`.
/// - [CommonFinders.closeButton], which in tests is used as `find.closeButton()`.
enum StandardComponentType {
/// Indicates the associated widget is a standard back button, typically used
/// to navigate back to the previous screen.