Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package:collection for the new strict_top_level_inference lint #735

Merged
merged 5 commits into from
Jan 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkgs/collection/lib/src/unmodifiable_wrappers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,12 @@ abstract mixin class UnmodifiableMapMixin<K, V> implements Map<K, V> {
/// operations that change the map are disallowed.
@override
void clear() => _throw();

/// Throws an [UnsupportedError].
@Deprecated('This will be removed at a later date.')
devoncarew marked this conversation as resolved.
Show resolved Hide resolved
set first(dynamic _) => _throw();
devoncarew marked this conversation as resolved.
Show resolved Hide resolved

/// Throws an [UnsupportedError].
@Deprecated('This will be removed at a later date.')
set last(dynamic _) => _throw();
}
Loading