HttpFile.fromString constructor

HttpFile.fromString(
  1. String field,
  2. String value, {
  3. String? filename,
  4. MediaType? contentType,
})

Creates a new HttpFile from a string.

Implementation

factory HttpFile.fromString(String field, String value,
    {String? filename, MediaType? contentType}) {
  return HttpFile._(field,
      value: value, filename: filename, contentType: contentType);
}