maybeWhen<TResult extends Object?> method

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

Implementation

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