Tuple2<T1, T2> class
Represents a 2-tuple, or pair.
- Available extensions
Constructors
- Tuple2(T1 item1, T2 item2)
-
Creates a new tuple value with the specified items.
const
- Tuple2.fromList(List items)
-
Create a new tuple value with the specified list
items.factory
Properties
- ah → double
-
Available on Tuple2<
Calculates adaptive height based on the screen height and design height values.num, num> , provided by the AdaptiveHeightExtension extensionno setter - aw → double
-
Available on Tuple2<
Calculates adaptive width based on the screen width and design width values.num, num> , provided by the AdaptiveWidthExtension extensionno setter - d → double
-
Available on Tuple2<
Calculates diagonal size based on the screen size and design dimensions.num, num> , provided by the AdaptiveWidthExtension extensionno setter - hashCode → int
-
The hash code for this object.
no setteroverride
- item1 → T1
-
Returns the first item of the tuple
final
- item2 → T2
-
Returns the second item of the tuple
final
- 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
-
toList(
{bool growable = false}) → List - Creates a List containing the items of this Tuple2.
-
toString(
) → String -
A string representation of this object.
override
-
withItem1(
T1 v) → Tuple2< T1, T2> - Returns a tuple with the first item set to the specified value.
-
withItem2(
T2 v) → Tuple2< T1, T2> - Returns a tuple with the second item set to the specified value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override