when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult preparing(),
- required TResult inProgress(),
- required TResult success(),
- required TResult failed(
- 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;