Skip to content

Commit

Permalink
Adjust docs for props (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-dfm authored Nov 12, 2024
1 parent 7c58d2d commit ac6bb78
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/src/spot/props.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ extension PropSelectorQueries<W extends Widget> on ChainableSelectors<W> {
/// ```dart
/// spotSingle<Checkbox>()
/// .whereWidgetProp(
/// prop: widgetProp('isChecked', (widget) => widget.value),
/// match: (value) => value == true,
/// widgetProp('isChecked', (widget) => widget.value),
/// (value) => value == true,
/// ).existsOnce();
/// ```
@useResult
Expand Down Expand Up @@ -111,8 +111,8 @@ extension PropSelectorQueries<W extends Widget> on ChainableSelectors<W> {
/// ```dart
/// spotSingle<Checkbox>()
/// .whereElementProp<bool>(
/// prop: elementProp('isFocused', (element) => element.isFocused),
/// match: (isFocused) => isFocused == true,
/// elementProp('isFocused', (element) => element.isFocused),
/// (isFocused) => isFocused == true,
/// ).existsOnce();
/// ```
@useResult
Expand Down Expand Up @@ -142,8 +142,8 @@ extension PropSelectorQueries<W extends Widget> on ChainableSelectors<W> {
/// ```dart
/// spotSingle<Checkbox>()
/// .whereRenderObjectProp<double, RenderBox>(
/// prop: renderObjectProp('opacity', (ro) => ro.opacity),
/// match: (opacity) => opacity > 0.5,
/// renderObjectProp('opacity', (ro) => ro.opacity),
/// (opacity) => opacity > 0.5,
/// ).existsOnce();
/// ```
@useResult
Expand Down

0 comments on commit ac6bb78

Please sign in to comment.