last property

  1. @override
A get last
override

Returns the last element of this collection, or throws if it is empty.

Implementation

@override
A get last {
  if (_last0 == null) {
    throw StateError('last of empty ListBuffer');
  } else {
    return _last0!.head;
  }
}