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 439cbba commit 01eb4a6
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", Boolean.toString(matchRoot),
"firstMatchOnly", Boolean.toString(firstMatchOnly)
"matchRoot", "true",
"firstMatchOnly", "false"
));
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", Boolean.toString(matchRoot),
"firstMatchOnly", Boolean.toString(firstMatchOnly)
"matchRoot", "true",
"firstMatchOnly", "false"
));
matchIdentifier.put("of", of.getRawMap());
matchIdentifier.put("matching", matching.getRawMap());
Expand Down

0 comments on commit 01eb4a6

Please sign in to comment.