Query groupBy(List<String> columnName) { final groupB = columnName.toString().replaceAll('[', '').replaceAll(']', ''); if (groupB != 'null') { _groupBy += ' GROUP BY $groupB'; } return this; }