R<T> class

createTime: 2022/11/18 on 21:10 desc:

@author azhon

Constructors

R.error({int code = RCode.error, String msg = 'error', T? data})
data only support String,num,bool,Map
R.ok({int code = RCode.ok, String msg = 'ok', T? data})
data only support String,num,bool,Map

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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