NoVaryBy class
Ignores the paramter when it comes to saving previous results
Useful for long lists where we don't want to compare the results before saving
getUserId(@noVaryBy first, last) previousResult = []
in(first: Adrian, last: Hill), out(5) changed previousResult = {result: 5, p1: null, p2: hill}
in(first: Adrian, last: Hill), out(5) changed previousResult = {result: 5, p1: null, p2: hill}
in(first: Jimmy, last: Hill), out(5) changed previousResult = {result: 5, p1: null, p2: hill}
Constructors
- NoVaryBy()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
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