polymerizeByDataType method

void polymerizeByDataType(
  1. DataType inputDataType,
  2. DataType outputDataType
)

Adds a new data type to the grouped data and sets the type of the grouped data to be returned.

Implementation

void polymerizeByDataType(
  DataType inputDataType,
  DataType outputDataType,
) {
  _polymerizedDataTypes ??= <Map<String, dynamic>>[];
  _polymerizedDataTypes?.add(
    <String, dynamic>{
      'inputDataType': inputDataType.toMap(),
      'outputDataType': outputDataType.toMap(),
    },
  );
}