add method

void add(
  1. FutureOr<EncodedData> data
)
inherited

Adds representation to the data item. On item can contain multiple representations, each in a different format. Representation should be added by priority (highest fidelity content first), as some platforms respect the order.

Implementation

void add(FutureOr<EncodedData> data) {
  _data.add(data);
}