dynamic_call
library
Functions
-
buildURLWithQueryParameters(String url, Map<String, String?> parameters, {bool removeFragment = false})
→ String
-
Builds an URL with Query parameters adding the map
parameters
to current
Query parameters.
-
canHttpMethodHaveBody(HttpMethod method)
→ bool
-
-
contentTypeToDecoder(MimeType mimeType)
→ Converter<List<int>, String>
-
Returns de decoder for a Content-Type at parameter
mimeType
and charset
.
-
createHttpBlob(List content, MimeType? mimeType)
→ HttpBlob?
-
-
createHttpClientRequester()
→ HttpClientRequester
-
Creates a HttpClientRequester based in imported platform.
-
doDataSourceOperation<T>(DataSource<T> dataSource, DataSourceOperation operation, Map<String, String>? parameters, [List<T>? dataList])
→ Future<List<T?>?>
-
Performs a DataSourceOperation over
dataSource
instance.
-
doTransformFrom<T>(T? data, DataTransformerFrom<T>? transformerFrom)
→ dynamic
-
-
doTransformFromList<T>(List<T>? list, DataTransformerFrom<T>? transformerFrom, DataTransformerFromList<T>? transformerFromList)
→ dynamic
-
-
doTransformTo<T>(Object? o, DataTransformerTo<T>? transformerTo)
→ T?
-
-
doTransformToList<T>(Object? o, DataTransformerTo<T>? transformerTo, DataTransformerToList<T>? transformerToList)
→ List<T>?
-
-
getDataSourceOperation(String? name)
→ DataSourceOperation?
-
Returns a DataSourceOperation by
name
.
-
getDataSourceOperationName(DataSourceOperation? operation)
→ String?
-
-
getHttpClientRuntimeUri()
→ Uri
-
Returns the base runtime Uri for the platform.
-
getHttpMethod(String? method, [HttpMethod? def])
→ HttpMethod?
-
Returns HttpMethod instance for
method
parameter.
-
getHttpMethodName(HttpMethod? method, [HttpMethod? def])
→ String?
-
Returns
method
name.
-
isHttpBlob(Object o)
→ bool
-
-
methodAcceptsQueryString(HttpMethod method)
→ bool
-
-
resolveDataSourceBaseURL(String url)
→ String
-
-
transformToList<T>(Object? o)
→ List<T>
-
-
transformToType<T>(Object? o)
→ T?
-
Typedefs
-
AuthorizationInterceptor
= void Function(Authorization? authorization)
-
-
AuthorizationProvider
= Future<Credential?> Function(HttpClient client, HttpError? lastError)
-
-
BodyBuilderFunctionDynamic
= dynamic Function(Map<String, String?>? callParameters, Map<String, String?>? requestParameters)
-
-
BodyBuilderFunctionSimpleDynamic
= dynamic Function()
-
-
BodyBuilderFunctionSimpleString
= String Function()
-
-
BodyBuilderFunctionString
= String Function(Map<String, String?>? callParameters, Map<String, String?>? requestParameters)
-
-
DataTransformerFrom<T>
= dynamic Function(T? data)
-
-
DataTransformerFromList<T>
= dynamic Function(List<T>? dataList)
-
-
DataTransformerTo<T>
= T? Function(Object? o)
-
-
DataTransformerToList<T>
= List<T>? Function(Object? o)
-
-
DynCallCredentialParser<E>
= DynCallCredential? Function(String? output, String? outputFiltered, Map<String, String?>? parameters, Map<String, String?>? requestParameters)
-
-
DynCallFunction<R, T>
= Future<R> Function(DynCall<R, T>? dynCall, Map<String, String?>? parameters)
-
-
ExecutorWrapper
= DynCallExecutor Function(DynCallExecutor executor)
-
-
HttpBodyBuilder
= dynamic Function(Map<String, String?> parameters)
-
Function to dynamically build a HTTP body.
-
HttpBodyBuilderTyped
= dynamic Function(Map<String, String?> parameters, String? type)
-
-
HttpClientURLFilter
= String Function(String url, Map<String, String?>? queryParameters)
-
-
HTTPJSONOutputFilter
= dynamic Function(dynamic json, Map<String, String?>? callParameters, Map<String, String?>? requestParameters)
-
-
HTTPOutputFilter
= String Function(String? output, Map<String, String?>? callParameters, Map<String, String?>? requestParameters)
-
-
HTTPOutputInterceptor<E>
= void Function(DynCallExecutor<E?> executor, String? outputOriginal, bool outputValid, String? outputFiltered, Map<String, String?>? callParameters, Map<String, String?>? requestParameters)
-
-
HTTPOutputValidator
= bool Function(String? output, Map<String, String?>? callParameters, Map<String, String?>? requestParameters)
-
-
OnCachedResponse
= void Function(HttpResponse cachedResponse)
-
-
OnHttpError
= OnHttpErrorAnswer Function(HttpError? error)
-
-
ParameterProvider
= String Function(String key)
-
-
ProgressListener
= void Function(HttpRequest request, int? loaded, int? total, double? ratio, bool upload)
-
-
-
-
ResponseProcessor
= void Function(HttpClient client, Object request, HttpResponse response)
-
-
SimulateResponse
= dynamic Function(String url, Map<String, String?>? queryParameters)
-
-
SysCallCallback<O>
= void Function(O output, Map<String, dynamic>? parameters)
-
Callback function.
-
SysCallOutputFilter<O, E>
= O Function(E output)
-
-
SysProgressListener<O>
= void Function(int? loaded, int? total, double? ratio, bool upload)
-
Progress function.