Api class

Constructors

Api.new()

Properties

completedPages List<int>
getter/setter pair
currentModel int
getter/setter pair
currentPage int
getter/setter pair
db Db
getter/setter pair
fetchRequest Map<String, Object>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isOldDelete String
getter/setter pair
pages String
getter/setter pair
pageSize int
getter/setter pair
pdlg ↔ ProgressDialog?
getter/setter pair
percentage double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showNotify String
getter/setter pair
totalRecord int
getter/setter pair

Methods

delete({Object? model, bool includeChild = false}) Future<ResponseRF>
downloadBeforeSignup(BuildContext context, {bool forceDownload = false, String? instructionText, String? retryText, double? instructionFontSize, String? titleText, String? subTitleText, String? serviceName, Color? indicatorColor, Color? instructionTextColor, Color? buttonTextColor, double? buttonFontSize, String? imagePath, Color? imageBackgroundColor, double? imageSize = 44, Color? cancelButtonColor, Color? acceptButtonColor, Color? retryButtonColor, double? dialogBorderRadius, String? animationPath, Function? dispatcher, Function? onCancel, Function? onComplete}) → dynamic
fetchAll(BuildContext context, String serviceName, Function dispatcher, List models, [Function? onFetchComplete]) → dynamic
fetchInitials(BuildContext context, String serviceName, Function dispatcher, List models, [Function? onFetchComplete]) → dynamic
fetchModel({BuildContext? context, String? serviceName, Function? dispatcher, String? modelsName, bool showDialog = true, bool closeDialog = true, bool showNotification = true, bool allowRetry = false, Function? onFetchComplete}) → dynamic
get<T>({String? url, dynamic jsonNode}) Future<List<T>>
httpGet({String? url, String headers = "application/json"}) Future<Response>
httpPost({String? url, String? requestBody, String headers = "application/json"}) Future<Response>
login(BuildContext context, String userName, String password) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFetchComplete(String serviceName, {bool closeDialog = true, String? modelName}) → dynamic
onSyncComplete(String serviceName) → dynamic
postFetchRequest(String apiBaseURL, dynamic model, int pageNo, bool includeChild, [dynamic jsonPacket]) → dynamic
postSingleFetchRequest(String apiBaseURL, dynamic model, int pageNo, [dynamic jsonPacket]) → dynamic
printWrapped(String text) → void
processFetchResponse(String serviceName, Response response, dynamic model, int totalPage, int pageNo, Function? onFetchComplete) → dynamic
processPrefKey(String data) → dynamic
processSingleFetchResponse(Response response, dynamic model, int pageNo, Function? onFetchComplete) → dynamic
read<T>({String select = "", String where = "", String order = "", int pageNo = 1, int? pageSize, Function? onComplete, bool includeChild = false}) Future<List<T>>
register(dynamic context, dynamic userInfo) Future<ResponseRF>
remoteDelete(Object model, Function onSuccess) → dynamic
remoteGet(Object model, int pageNo, Function onComplete) → dynamic
remoteSave(Object model, String command, Function onSuccess) → dynamic
runFetchService({String? serviceName, Function? reflectionAgent, IConfigRF? config, Map<String, dynamic>? inputData}) → dynamic
runSyncService({Function? reflectionAgent, IConfigRF? config, Map<String, dynamic>? inputData}) → dynamic
save<T>({Object? model}) Future<ResponseRF>
syncModels(String jobName, BuildContext context, Function dispatcher, [List<Type>? models]) → dynamic
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

onFetchCompleted Function?
getter/setter pair
onFetchFailed Function?
getter/setter pair
onSyncCompleted Function?
getter/setter pair