groupByTime method
Sets the group type to TYPE_TIME and sets the duration for each group.
Implementation
void groupByTime(
int duration, {
TimeUnit timeUnit = TimeUnit.MILLISECONDS,
}) {
_groupByTime = <String, dynamic>{
'duration': duration,
'timeUnit': describeEnum(timeUnit),
};
}