Prop<T> class

An improved implementation of AsyncResponse

Constructors

Prop({required PropStatus status, T? data, dynamic error, dynamic allowNull = true})
Prop.error(PropStatus status, [dynamic error = ""])
factory
Prop.success(T data, {bool allowNull = false})
factory

Properties

data → T?
final
error → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
no setter
isTerminated bool
no setter
isUnknown bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PropStatus
final

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