first method

Future<R?> first()

The first projected row, or null.

Implementation

Future<R?> first() async {
  final dialect = await _resolvedDialect();
  final row = await _select.first(
    session,
    dialect: dialect,
    timeout: timeout,
    cancellationToken: options.cancellationToken,
    options: options,
  );
  return row == null ? null : _map(row);
}