UploadState.failed constructor

const UploadState.failed({
  1. required String error,
})

Failed state of the union

Implementation

const factory UploadState.failed({required String error}) = Failed;