Skip to content

Commit

Permalink
call to string in else path
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Aug 14, 2023
1 parent df3606f commit 73d5675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flutter/lib/src/method_channel_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MethodChannelHelper {
mapToReturn[key] = _normalizeList(value);
} else if (value is Map<String, dynamic>) {
mapToReturn[key] = normalizeMap(value);
} else if (value is Object) {
} else {
mapToReturn[key] = value.toString();
}
});
Expand All @@ -31,7 +31,7 @@ class MethodChannelHelper {
listToReturn.add(_normalizeList(element));
} else if (element is Map<String, dynamic>) {
listToReturn.add(normalizeMap(element));
} else if (element is Object) {
} else {
listToReturn.add(element.toString());
}
}
Expand Down

0 comments on commit 73d5675

Please sign in to comment.