NIMAudioAttachment constructor

NIMAudioAttachment({
  1. int? duration,
  2. bool? autoTransform,
  3. String? text,
  4. String? path,
  5. required int? size,
  6. String? md5,
  7. String? url,
  8. String? base64,
  9. String? displayName,
  10. String? extension,
  11. int? expire,
  12. NIMNosScene nosScene = NIMNosScenes.defaultIm,
  13. bool forceUpload = false,
})

Implementation

NIMAudioAttachment(
    {this.duration,
    this.autoTransform,
    this.text,
    String? path,
    required int? size,
    String? md5,
    String? url,
    String? base64,
    String? displayName,
    String? extension,
    int? expire,
    NIMNosScene nosScene = NIMNosScenes.defaultIm,
    bool forceUpload = false})
    : super(
          path: path,
          size: size,
          md5: md5,
          url: url,
          base64: base64,
          displayName: displayName,
          extension: extension,
          expire: expire,
          nosScene: nosScene,
          forceUpload: forceUpload);