FastStoreBlocState class

Inheritance
  • Object
  • TModel
  • BlocState
  • FastStoreBlocState

Constructors

FastStoreBlocState({bool isInitialized = false, bool isInitializing = false, dynamic error, bool isRestoringPurchases = false, bool isPurchasePending = false, bool isLoadingProducts = false, bool isStoreAvailable = false, List<FastInAppPurchase> purchases = const [], List<ProductDetails>? products})

Properties

error → dynamic
Whether the bloc has an error.
finalinherited
hasError bool
Indicates whether the bloc has an error.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasLoadedProducts bool
no setter
isBusy bool
Whether the bloc is busy.
finalinherited
isInitialized bool
Whether the bloc is initialized.
finalinherited
isInitializing bool
Whether the bloc is initializing.
finalinherited
isLoadingProducts bool
final
isPurchasePending bool
final
isRestoringPurchases bool
final
isStoreAvailable bool
final
products List<ProductDetails>?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
purchases List<FastInAppPurchase>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
uuid String
The unique identifier of the bloc state.
finalinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastStoreBlocState
Creates a copy of this TModel.
override
copyWith({String? priceText, String? descriptionText, bool? isInitialized, bool? isInitializing, bool? isPurchasePending, bool? isRestoringPurchases, bool? isLoadingProducts, bool? isStoreAvailable, List<FastInAppPurchase>? purchases, List<ProductDetails>? products, dynamic error}) FastStoreBlocState
Creates a copy of this TModel but with the given fields replaced with the new values.
override
copyWithDefaults() → TModel
inherited
hasPurchasedProduct(String productId) bool
merge(covariant FastStoreBlocState model) FastStoreBlocState
Creates a new TModel where each properties from this object has been merged with the matching properties from the other object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited