when<TResult extends Object?> method

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

Implementation

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