FileData constructor

const FileData({
  1. required String name,
  2. Uint8List? bytes,
  3. String? path,
  4. String? mimeType,
})

Implementation

const FileData({
  required this.name,
  this.bytes,
  this.path,
  this.mimeType,
}) : assert(
        bytes != null || path != null,
        'Either bytes or path must be provided',
      );