aggregate method

Future<double> aggregate(
  1. AggregateType type,
  2. int row1,
  3. int col1,
  4. int row2,
  5. int col2,
)

Aggregate a rectangular range and return the numeric result.

Implementation

Future<double> aggregate(
  AggregateType type,
  int row1,
  int col1,
  int row2,
  int col2,
) async {
  final resp = await VolvoxGridService.Aggregate(AggregateRequest()
    ..gridId = _gridId
    ..aggregate = type
    ..row1 = row1
    ..col1 = col1
    ..row2 = row2
    ..col2 = col2);
  return resp.value;
}