single method
Implementation
(Entity, A, B) single() {
final match = singleOrNull();
if (match == null) {
throw StateError(
'Query2<$A, $B>.single: expected exactly one matching entity, found '
'none.',
);
}
return match;
}