single method

(Entity, A, B, C) single()

Implementation

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