RSIMResult<T> class

统一的成功/失败结果,不使用异常传播可预期错误。

Constructors

RSIMResult.failure(RSIMError? error, {T? data})
const
RSIMResult.nativeFailure(int code, {required String operation, T? data})
factory
RSIMResult.success([T? data])
const

Properties

data → T?
final
error → RSIMError?
final
hashCode → int
The hash code for this object.
no setterinherited
isSuccess → bool
no setter
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
toString() → String
A string representation of this object.
inherited

Operators

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