Skip to content

Commit

Permalink
fix(radon): ensure runtimeType checks strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Dec 28, 2023
1 parent 2e8572a commit 004cbf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/rad/types/array.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class RadArray<E> extends ListBase<E> {
@override
void operator []=(int index, value) {
Type type;
if (typesMap.containsKey(value.runtimeType)) {
type = typesMap[value.runtimeType]!;
if (typesMap.containsKey(value.runtimeType.toString())) {
type = typesMap[value.runtimeType.toString()]!;
_value[index] = RadTypes.instance(type, value, {});
} else if (typesList.contains(value.runtimeType)) {
type = value.runtimeType;
Expand Down

0 comments on commit 004cbf6

Please sign in to comment.