single property

  1. @override
T single
override

Gets the single element in the list. Throws an error if the list has more than one item.

Implementation

@override
T get single => _items.single;