Skip to content

Commit 73d5675

Browse files
committed
call to string in else path
1 parent df3606f commit 73d5675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flutter/lib/src/method_channel_helper.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MethodChannelHelper {
1515
mapToReturn[key] = _normalizeList(value);
1616
} else if (value is Map<String, dynamic>) {
1717
mapToReturn[key] = normalizeMap(value);
18-
} else if (value is Object) {
18+
} else {
1919
mapToReturn[key] = value.toString();
2020
}
2121
});
@@ -31,7 +31,7 @@ class MethodChannelHelper {
3131
listToReturn.add(_normalizeList(element));
3232
} else if (element is Map<String, dynamic>) {
3333
listToReturn.add(normalizeMap(element));
34-
} else if (element is Object) {
34+
} else {
3535
listToReturn.add(element.toString());
3636
}
3737
}

0 commit comments

Comments
 (0)