oneModel method

Future<M?> oneModel({
  1. Where? where,
  2. Object? groupBy,
  3. Object? having,
  4. Object? window,
  5. Object? orderBy,
  6. SQLExecutor? executor,
})

Implementation

Future<M?> oneModel({Where? where, Object? groupBy, Object? having, Object? window, Object? orderBy, SQLExecutor? executor}) async {
  final ls = await listModel(where: where, groupBy: groupBy, having: having, window: window, orderBy: orderBy, limit: 1, executor: executor);
  return ls.firstOrNull;
}