TypedDataEncoder typedef

TypedDataEncoder = FutureOr Function(dynamic typedData, Type typedDataType)

Takes a typed-data and return a structured-data usable by the appropriate structured-data encoder (based on mime-type). Depending on the mime-type, the return type must be String, List

Implementation

typedef TypedDataEncoder = FutureOr<dynamic> Function(
  dynamic typedData,
  Type typedDataType,
);