Skip to content

Commit

Permalink
Fixed nullable return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcglasberg committed Jun 5, 2024
1 parent 7148ba9 commit 02bf90b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/list_map/list_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class ListMap<K, V> implements Map<K, V> {
}

@override
V remove(Object? key) {
V? remove(Object? key) {
throw UnsupportedError("Can't remove from a ListMap.");
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/list_map/list_map_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ListMapView<K, V> implements ListMap<K, V> {
}

@override
V remove(Object? key) {
V? remove(Object? key) {
throw UnsupportedError("Can't remove from a ListMap.");
}

Expand Down

0 comments on commit 02bf90b

Please sign in to comment.