SubscriptionResource<T> class

Constructors

SubscriptionResource({SubscriptionResourceStatus status = SubscriptionResourceStatus.ERROR, T? data, String? message, int? code, dynamic exception, dynamic extras})
SubscriptionResource.data(T? data, {dynamic extras})
factory
SubscriptionResource.done({T? data, dynamic extras})
factory
SubscriptionResource.error(T? data, String? message, {int? code, dynamic exception, dynamic extras})
factory
SubscriptionResource.loading(T? data, {dynamic extras})
factory

Properties

code int?
getter/setter pair
data ↔ T?
getter/setter pair
exception ↔ dynamic
getter/setter pair
extras ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status SubscriptionResourceStatus
getter/setter pair

Methods

clone({required SubscriptionResource<T> currentData, SubscriptionResource<T>? newData, bool merge = false}) SubscriptionResource<T>
equals(Object o) bool
exists() bool
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

Static Methods

hasData(SubscriptionResource? subscriptionResource) bool