sum method
sum gets sum value of a num column in table
Implementation
@override
Future<int?> sum(String column) async {
final builder = _copyQueryWith(columns: ['SUM($column)']);
final completer = Completer<List<Map<String, dynamic>>>()
..complete(database!.rawQuery(builder.sql, builder.arguments));
if (isLogger!) Logger.query(type, completer.future, builder);
final result = await completer.future;
return result.firstOrNull?.values.firstOrNull as int?;
}