MultiKey class

A composite grouping key built from several selector values.

A raw List cannot be a Map key because lists use identity equality — two lists with equal contents are different keys. MultiKey gives the tuple value equality (element-wise) and a matching hash, so grouping by (country, year) collapses every row with the same pair into one bucket.

Annotations

Constructors

MultiKey(List<Object?> values)
Wraps the ordered selector values that make up this composite key. Audited: 2026-06-12 11:26 EDT
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<Object?>
The selector values in selector order (e.g. [country, year]).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override