TypedDataDecoder typedef

TypedDataDecoder = FutureOr Function(dynamic structuredData, Type typedDataType)

Takes a structured-data from a structured-data decoder and return a typed-data (return type must follow typedDataType arg). Depending on the mime-type, the structured data type will be a String, List

Implementation

typedef TypedDataDecoder = FutureOr<dynamic> Function(
  dynamic structuredData,
  Type typedDataType,
);