ApiResult<TResponse> class

Implemented types

Constructors

ApiResult({TResponse? response, ResponseStatus? error})
ApiResult.copy([ApiResult<TResponse>? init])

Properties

completed bool
no setteroverride
error ResponseStatus?
getter/setter pairoverride-getter
errorCode String?
no setteroverride
errorMessage String?
no setteroverride
errors List<ResponseError>
no setteroverride
errorSummary String?
no setteroverride
failed bool
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
response → TResponse?
final
responseObject Object?
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
succeeded bool
no setteroverride

Methods

addFieldError(String fieldName, String message, [String errorCode = 'Exception']) → dynamic
fieldError(String fieldName) → dynamic
fieldErrorMessage(String fieldName) → dynamic
hasFieldError(String fieldName) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showSummary([List<String> exceptFields = const []]) → dynamic
summaryMessage([List<String> exceptFields = const []]) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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