DynCall<E, O> class

A Dynamic Call specification

Constructors

DynCall(List<String> input, DynCallType outputType, {SysCallOutputFilter<O?, E?>? outputFilter, bool allowRetries = false})

Properties

allowRetries bool
If true allows retries of the call. Recommended only for call that won't make changes to the system.
final
executor DynCallExecutor<E>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
input List<String>
Input fields of the call.
final
outputFilter SysCallOutputFilter<O?, E?>?
Output filter, to transform from E to O.
final
outputType DynCallType
Type of the output.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildCallParameters(Map<String, dynamic>? inputParameters) Map<String, String>
Build call parameters using inputParameters.
buildURI([Map<String, dynamic>? inputParameters]) String?
Returns the call URI, without perform a call.
call([Map<String, dynamic>? inputParameters, SysCallCallback<O?>? callback, SysProgressListener? onProgress]) Future<O?>
Executes the call using inputParameters (with fields specified at input) and calling callback after.
mapOutput(E? out) → O?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseExecution(Object? value) → E?
Parses a value to the outputType.
parseOutput(Object? value) → O?
Parses the output of the call to the outputType and applying outputFilter if needed.
parseOutputBOOL(Object? value) bool
parseOutputDECIMAL(Object? value) double?
parseOutputINTEGER(Object? value) int?
parseOutputJSON(Object? value) → dynamic
parseOutputSTRING(Object? value) String?
toString() String
A string representation of this object.
inherited

Operators

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