FetchedProduct class
A Product that we tried to fetch, but was it successful?..
Constructors
- FetchedProduct.error({required String exceptionString, required bool isConnected, String? failedPingedHost})
-
When the "fetch product" operation had an internet error.
const
- FetchedProduct.found(Product product)
-
const
- FetchedProduct.internetNotFound()
-
The internet Product search said it couldn't find the product.
const
- FetchedProduct.userCancelled()
-
The user cancelled the operation.
const
Properties
- exceptionString → String?
-
When relevant, string of the exception.
final
- failedPingedHost → String?
-
When relevant, host of the query that we couldn't even ping.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool?
-
When relevant, returns true if connected.
final
- isValid → bool
-
A valid product needs to have photos (otherwise, we consider it as new)
no setter
- product → Product?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → FetchedProductStatus
-
final
Methods
-
getErrorTitle(
AppLocalizations appLocalizations) → String -
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