NIMAudioAttachment constructor Null safety

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? displayName,
  9. String? extension,
  10. int? expire,
  11. NIMNosScene nosScene = NIMNosScenes.defaultIm,
  12. bool forceUpload = false}
)

Implementation

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