ApiBuilder<T> constructor

ApiBuilder<T>({
  1. required String url,
  2. Map<String, String>? args,
  3. String? method,
  4. String? dataPath,
  5. required Widget builder(
    1. ApiResponse<T>? data
    ),
  6. Widget? loading,
  7. bool? showLoading,
  8. String? errorPath,
})

Implementation

ApiBuilder(
    {required this.url,
    this.args,
    this.method,
    this.dataPath,
    required this.builder,
    this.loading,
    this.showLoading,
    this.errorPath});