whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? loading()?,
  2. TResult? empty()?,
  3. TResult? fetched(
    1. List<ProductVariantModel> productVariants
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function()? loading,
  TResult? Function()? empty,
  TResult? Function(List<ProductVariantModel> productVariants)? fetched,
}) =>
    throw _privateConstructorUsedError;