single_ method
Returns the only element of the source (or the only one matching
the optional where predicate).
Throws StateError if the source has zero or more than one matching element.
Implementation
T single_({Expr? where}) => _firstOrSingle(
this,
where: where,
opName: 'single_',
requireExactlyOne: true,
orDefault: false,
);