Skip to content
Prev Previous commit
Next Next commit
call to string in else path
  • Loading branch information
denrase committed Aug 14, 2023
commit 73d5675d9a769b13f3886aaaf556ac6427c59aae
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