when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult preparing(),
  2. required TResult inProgress(
    1. int uploaded,
    2. int total
    ),
  3. required TResult success(),
  4. required TResult failed(
    1. String error
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() preparing,
  required TResult Function(int uploaded, int total) inProgress,
  required TResult Function() success,
  required TResult Function(String error) failed,
}) =>
    throw _privateConstructorUsedError;