ListWrapper<T> class

Wraps a list as a property

We needed to use list as key for Maps. But in dart, List doesn't implement hashCode and equals functions. That is a workaround to solve the problem. Issue link: https://github.com/dart-lang/sdk/issues/17963

Constructors

ListWrapper(List<T> list)

Properties

hashCode int
The hash code for this object.
no setterinherited
list List<T>
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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

Operators

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