NEResult<T> class

Available extensions

Constructors

NEResult({required int code, String? msg, T? data, String? requestId, int cost = 0})
const
NEResult.success()
const
NEResult.successWith(T? data)

Properties

code int
final
cost int
final
data → T?
final
hashCode int
The hash code for this object.
no setterinherited
msg String?
final
nonNullData → T
no setter
requestId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isSuccess() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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