diff --git a/lib/src/spot/effective/effective_text.dart b/lib/src/spot/effective/effective_text.dart index c3498bd5..7d146fe4 100644 --- a/lib/src/spot/effective/effective_text.dart +++ b/lib/src/spot/effective/effective_text.dart @@ -4,10 +4,11 @@ import 'package:spot/src/spot/element_extensions.dart'; import 'package:spot/src/spot/selectors.dart'; extension EffectiveTextMatcher on WidgetMatcher { - /// Matches the [Text] widget when it has the given [maxLines] + /// Matches the [Text] widget when it has the given [maxLines]. /// /// ```dart - /// spotTexts('foo').hasEffectiveMaxLinesWhere((it)=> it.equals(1)); + /// spot().withText('foo').existsOnce() + /// .hasEffectiveMaxLinesWhere((it) => it.equals(1)); /// ``` WidgetMatcher hasEffectiveMaxLinesWhere(MatchProp match) { return hasProp(