Fix typo in hitTest docs (#145677)

This PR fixes the typo in the `hitTest` method documentation.
This commit is contained in:
Kostia Sokolovskyi 2024-03-25 18:00:06 +01:00 committed by GitHub
parent b39660df8f
commit 2851ed3202
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -2708,7 +2708,7 @@ abstract class RenderBox extends RenderObject {
/// having been called in [hitTest] but cannot rely upon [paint] having been
/// called. For example, a render object might be a child of a [RenderOpacity]
/// object, which calls [hitTest] on its children when its opacity is zero
/// even through it does not [paint] its children.
/// even though it does not [paint] its children.
bool hitTest(BoxHitTestResult result, { required Offset position }) {
assert(() {
if (!hasSize) {

View file

@ -1390,7 +1390,7 @@ abstract class RenderSliver extends RenderObject {
/// having been called in [hitTest] but cannot rely upon [paint] having been
/// called. For example, a render object might be a child of a [RenderOpacity]
/// object, which calls [hitTest] on its children when its opacity is zero
/// even through it does not [paint] its children.
/// even though it does not [paint] its children.
///
/// ## Coordinates for RenderSliver objects
///