MagentoCloudFeatureResult<T> class
Result for cloud feature operations
- Inheritance
-
- Object
- MagentoResult<
T> - MagentoCloudFeatureResult
Constructors
- MagentoCloudFeatureResult.error(String error, {MagentoCloudFeatureType? featureType})
-
Create an error result
factory
- MagentoCloudFeatureResult.fallback(T data, {MagentoCloudFeatureType? featureType})
-
Create a fallback result (when cloud is unavailable)
factory
- MagentoCloudFeatureResult.success(T data, {MagentoCloudFeatureType? featureType, Duration? processingTime})
-
Create a successful cloud feature result
factory
Properties
- cloudProcessingTime → Duration?
-
Time taken for cloud processing
final
- data → T?
-
The result data (null if operation failed)
finalinherited
- error → String?
-
Error message (null if operation succeeded)
finalinherited
- fallbackUsed → bool
-
Whether fallback logic was used instead of cloud
final
- featureType → MagentoCloudFeatureType?
-
The cloud feature that was executed
final
- hasData → bool
-
Whether the operation succeeded and has data
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
Whether the operation failed
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
Whether the operation was successful
finalinherited
- timestamp → DateTime
-
When the result was created
finalinherited
Methods
-
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