first method
Implementation
@override
Future<Map<String, dynamic>?> first([
List<String> columns = const ['*'],
]) async {
if (softDeletes) {
whereNull(deletedAt);
}
super.limit(1).toSql();
final result = await super.first(columns);
attributes = Map.from(result ?? {});
if (result == null) {
return null;
}
return (await _loadRelations([result])).first;
}