firstAsMapWithMeta method

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

Implementation

Future<Map<String, Map<String, dynamic>>?> firstAsMapWithMeta() async {
  if (!currentQuery.isQuery()) {
    throw Exception('Dblayer@firstAsMapWithMeta Is nessesary query');
  }
  final rows = await getAsMapWithMeta();
  //if (rows != null) {
  if (rows.isNotEmpty) {
    return rows[0];
  } else {
    return null;
  }
  /* } else {
    return null;
  }*/
}