LocalAttachment constructor

LocalAttachment(
  1. NativeFile file, {
  2. SendingStatus status = SendingStatus.error,
})

Implementation

LocalAttachment(this.file, {SendingStatus status = SendingStatus.error})
  : status = Rx(status),
    super(
      id: AttachmentId.local(),
      original: ImageFile(
        relativeRef: '',
        size: file.size,
        width: file.dimensions.value?.width.round(),
        height: file.dimensions.value?.height.round(),
      ),
      filename: file.name,
    );