fetchSingle<T> method

Future<T?> fetchSingle<T>([
  1. T factory(
    1. Map<String?, dynamic>
    )?
])

Implementation

Future<T?> fetchSingle<T>(
    [T Function(Map<String?, dynamic>)? factory]) async {
  if (_fetchSingleFunc == null) {
    throw Exception('QueryBuilder@fetchSingle _fetchSingleFunc not defined');
  }
  //throw UnsupportedOperationException('`fetchSingle` not implemented');
  return _fetchSingleFunc!(factory);
}