first method

Future<Map<String, dynamic>?> first()

Fetch first row

Implementation

Future<Map<String, dynamic>?> first() async {
  limit(1);
  final rows = await get();
  return rows.isNotEmpty ? rows.first : null;
}