single property

view source

E single

inherited

Implementation

E get single {
  if (length == 0) throw IterableElementError.noElement();
  if (length > 1) throw IterableElementError.tooMany();
  return this[0];
}