ApiFile constructor

const ApiFile({
  1. required String fieldName,
  2. String? path,
  3. List<int>? bytes,
  4. String? filename,
  5. String? mimeType,
})

Implementation

const ApiFile({
  required this.fieldName,
  this.path,
  this.bytes,
  this.filename,
  this.mimeType,
}) : assert(
path != null || bytes != null,
'ApiFile: either path or bytes must be provided',
);