fromList<T> static method

Tuple0 fromList<T>(
  1. List<T> list
)
override

List constructor.

Implementation

static Tuple0 fromList<T>(List<T> list) {
  if (list.isNotEmpty) {
    throw ArgumentError.value(
        list, 'list', 'Expected list of length 0, but got ${list.length}');
  }
  return const Tuple0();
}