ContextualResource<T, C extends Comparable<C>> class

Wraps a resource and the related context.

Implemented types

Constructors

ContextualResource(T resource, Object? context)

Properties

context → C?
The contexts, that implements Comparable.
final
hashCode int
The hash code for this object.
no setteroverride
resource → T
The resource associated with context.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareContext(C c2) int
compareTo(ContextualResource<T, C> other) int
Compares this object to another object.
override
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

Static Methods

toList<T, C extends Comparable<C>>(Iterable<T> resources, C? context(T resource)) List<ContextualResource<T, C>>