mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? progress(
    1. AmityUploadInProgress value
    )?,
  2. TResult? complete(
    1. AmityUploadComplete value
    )?,
  3. TResult? error(
    1. AmityUploadError value
    )?,
  4. TResult? cancel(
    1. AmityUploadCancel value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(AmityUploadInProgress<T> value)? progress,
  TResult? Function(AmityUploadComplete<T> value)? complete,
  TResult? Function(AmityUploadError<T> value)? error,
  TResult? Function(AmityUploadCancel<T> value)? cancel,
}) =>
    throw _privateConstructorUsedError;