count method

String count([
  1. String? alias
])

Implementation

String count([String? alias]) {
  return 'COUNT($fieldName) AS ${(alias ?? fieldName!)}';
}