utils/utils
library
Functions
-
convertStreamedResponse(StreamedResponse streamedResponse)
→ Future<Response>
-
-
formatBody(String? body, MediaType? mediaType)
→ String?
-
-
getContentTypeFromContentTypeStr(String? contentType)
→ ContentType?
-
-
-
getContentTypeFromMediaType(MediaType? mediaType)
→ ContentType?
-
-
getEnabledRows(List<NameValueModel>? rows, List<bool>? isRowEnabledList)
→ List<NameValueModel>?
-
-
getFormDataType(String? type)
→ FormDataType
-
-
getGraphQLBody(HttpRequestModel httpRequestModel)
→ String?
-
-
getMediaTypeFromContentType(String? contentType)
→ MediaType?
-
-
-
getRequestBody(APIType type, HttpRequestModel httpRequestModel)
→ String?
-
-
getUriScheme(Uri uri)
→ (String?, bool)
-
-
getValidRequestUri(String? url, List<NameValueModel>? requestParams, {SupportedUriSchemes defaultUriScheme = kDefaultUriScheme})
→ (Uri?, String?)
-
-
handleAuth(HttpRequestModel httpRequestModel, AuthModel? authData)
→ Future<HttpRequestModel>
-
-
mapListToFormDataModelRows(List<Map>? kvMap)
→ List<FormDataModel>?
-
-
mapToRows(Map<String, String>? kvMap)
→ List<NameValueModel>?
-
-
-
rowsToFormDataMapList(List<FormDataModel>? kvRows)
→ List<Map<String, String>>?
-
-
rowsToMap(List<NameValueModel>? kvRows, {})
→ Map<String, String>?
-
-
stripUriParams(Uri uri)
→ String
-
-
stripUrlParams(String url)
→ String
-