Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions lib/ui/hash_codes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ part of dart.ui;
// int foo = 0;
// int bar = 0;
// List<int> quux = <int>[];
// List<int>? thud;
// int baz = 0;

class _HashEnd { const _HashEnd(); }
Expand Down Expand Up @@ -59,11 +60,11 @@ class _Jenkins {
/// int get hashCode => Object.hash(foo, bar, Object.hashAll(quux), baz);
/// ```
///
/// If `quux` in this example was nullable, then it would need special handling,
/// If a parameter is nullable, then it needs special handling,
/// because [Object.hashAll]'s argument is not nullable:
///
/// ```dart
/// int get hashCode => Object.hash(foo, bar, quux == null ? null : Object.hashAll(quux), baz);
/// int get hashCode => Object.hash(foo, bar, thud == null ? null : Object.hashAll(thud), baz);
/// ```
@Deprecated(
'Use Object.hash() instead. '
Expand Down