TermPair class Null safety
An object model for a pair of Terms that are both non-empty. terms is an ordered list of length 2, containing non-empty Terms term1 and term2;
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- term1 → String
-
Returns the first Term in the pair. Equivalent to terms.first.
read-only
- term2 → String
-
Returns the second Term in the pair. Equivalent to terms.last.
read-only
-
terms
→ List<
Term> -
An ordered list of length 2, containing non-empty
Terms term1 and term2.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
Returns the terms separated by a single white-space, e.g. "term1 term2".
override
Operators
-
operator ==(
Object other) → bool -
Compares only whether:
override