fetchOne<T> method

Future<T?> fetchOne<T>(
  1. String sql, [
  2. List<Object?>? values
])

Implementation

Future<T?> fetchOne<T>(String sql, [List<Object?>? values]) async {
  counter++;
  dynamic ret = null;
  for (var row in (await _prepareAndExecute(sql, values)).rows) {
    ret = row.typedColAt<T>(0);
  }
  return ret;
}