wrap static method

ByteDataRetriever wrap(
  1. StringRetriever stringFunction
)

Implementation

static ByteDataRetriever wrap(StringRetriever stringFunction) =>
    () => stringFunction().then((value) => value.toByteData());