Skip to content

Commit

Permalink
Update FlutterFinder.java
Browse files Browse the repository at this point in the history
  • Loading branch information
guulp authored Dec 22, 2023
1 parent 061955f commit f6999b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/io/github/ashwith/flutter/FlutterFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public FlutterElement byText(String input) {
public FlutterElement byAncestor(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly) {
Map<String, Object> matchIdentifier = new HashMap<>(ImmutableMap.of(
FINDER_TYPE, "Ancestor",
"matchRoot", "true",
"firstMatchOnly", "false"
"matchRoot", matchRoot,
"firstMatchOnly", firstMatchOnly
));
matchIdentifier.put("of", of.getRawMap());
matchIdentifier.put("matching", matching.getRawMap());
Expand All @@ -100,8 +100,8 @@ public FlutterElement byAncestor(FlutterElement of, FlutterElement matching, boo
public FlutterElement byDescendant(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly) {
Map<String, Object> matchIdentifier = new HashMap<>(ImmutableMap.of(
FINDER_TYPE, "Descendant",
"matchRoot", "true",
"firstMatchOnly", "false"
"matchRoot", matchRoot,
"firstMatchOnly", firstMatchOnly
));
matchIdentifier.put("of", of.getRawMap());
matchIdentifier.put("matching", matching.getRawMap());
Expand Down

0 comments on commit f6999b5

Please sign in to comment.