Result<TData> class

Annotations
  • @JsonSerializable(genericArgumentFactories: true, fieldRename: FieldRename.snake, createFactory: false, includeIfNull: false)

Constructors

Result(StatusCode code, String message, [TData? data])
Result.failure(StatusCode code, String message)
Result.success(TData? data)

Properties

code StatusCode
final
data → TData?
final
hashCode int
The hash code for this object.
no setterinherited
message 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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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