DownloadDelta constructor

DownloadDelta({
  1. required int id,
  2. StringDelta? url,
  3. StringDelta? finalUrl,
  4. StringDelta? filename,
  5. StringDelta? danger,
  6. StringDelta? mime,
  7. StringDelta? startTime,
  8. StringDelta? endTime,
  9. StringDelta? state,
  10. BooleanDelta? canResume,
  11. BooleanDelta? paused,
  12. StringDelta? error,
  13. DoubleDelta? totalBytes,
  14. DoubleDelta? fileSize,
  15. BooleanDelta? exists,
})

Implementation

DownloadDelta({
  /// The `id` of the [DownloadItem]
  /// that changed.
  required int id,

  /// The change in `url`, if any.
  StringDelta? url,

  /// The change in `finalUrl`, if any.
  StringDelta? finalUrl,

  /// The change in `filename`, if any.
  StringDelta? filename,

  /// The change in `danger`, if any.
  StringDelta? danger,

  /// The change in `mime`, if any.
  StringDelta? mime,

  /// The change in `startTime`, if any.
  StringDelta? startTime,

  /// The change in `endTime`, if any.
  StringDelta? endTime,

  /// The change in `state`, if any.
  StringDelta? state,

  /// The change in `canResume`, if any.
  BooleanDelta? canResume,

  /// The change in `paused`, if any.
  BooleanDelta? paused,

  /// The change in `error`, if any.
  StringDelta? error,

  /// The change in `totalBytes`, if any.
  DoubleDelta? totalBytes,

  /// The change in `fileSize`, if any.
  DoubleDelta? fileSize,

  /// The change in `exists`, if any.
  BooleanDelta? exists,
}) : _wrapped = $js.DownloadDelta(
        id: id,
        url: url?.toJS,
        finalUrl: finalUrl?.toJS,
        filename: filename?.toJS,
        danger: danger?.toJS,
        mime: mime?.toJS,
        startTime: startTime?.toJS,
        endTime: endTime?.toJS,
        state: state?.toJS,
        canResume: canResume?.toJS,
        paused: paused?.toJS,
        error: error?.toJS,
        totalBytes: totalBytes?.toJS,
        fileSize: fileSize?.toJS,
        exists: exists?.toJS,
      );