progress property

double? get progress

Progress in 0.0 – 1.0 when uploading, null otherwise

Implementation

double? get progress => switch (this) {
  UploadingState<T, E>(progress: final p) => p,
  _ => null,
};