Tuple0 extension

Extension methods on Record with 0 positional elements.

on
  • ()

Properties

iterable → Iterable<Object?>

Available on (), provided by the Tuple0 extension

An untyped Iterable over the values of this tuple.
no setter
length → int

Available on (), provided by the Tuple0 extension

The number of elements in the tuple.
no setter

Methods

addFirst<T>(T value) → (T)

Available on (), provided by the Tuple0 extension

Returns a new tuple with value added at the first position.
addLast<T>(T value) → (T)

Available on (), provided by the Tuple0 extension

Returns a new tuple with value added at the last position.
map<R>(R callback()) → R

Available on (), provided by the Tuple0 extension

Transforms the elements of this tuple using callback.
toList() → List<Object?>

Available on (), provided by the Tuple0 extension

Converts this tuple to an untyped List.
toSet() → Set<Object?>

Available on (), provided by the Tuple0 extension

Converts this tuple to an untyped Set of unique values.

Static Methods

fromList<T>(List<T> list) → ()

Available on (), provided by the Tuple0 extension

Creates a tuple from the elements in list.