PostWidget<T> constructor

const PostWidget<T>({
  1. Key? key,
  2. required String url,
  3. required Widget builder(
    1. void execute(
      1. T
      )
    ),
  4. required Map<String, dynamic> toMap(
    1. T data
    ),
  5. Widget loader = const CircularProgressIndicator(),
  6. void onError(
    1. dynamic
    )?,
  7. void onSuccess(
    1. Response
    )?,
  8. Dio? customDio,
})

Implementation

const PostWidget({
  super.key,
  required this.url,
  required this.builder,
  required this.toMap,
  this.loader = const CircularProgressIndicator(),
  this.onError,
  this.onSuccess,
  this.customDio,
});