UPIRequestParameters.builder constructor

UPIRequestParameters.builder(
  1. dynamic buildFunc(
    1. UPIRequestBuilder
    )
)

Factory method to create an instance of UPIRequestParameters using the builder pattern.

Parameters:

  • buildFunc: A function that takes a UPIRequestBuilder as a parameter and allows setting various parameters for UPI transaction.

Implementation

factory UPIRequestParameters.builder(Function(UPIRequestBuilder) buildFunc) {
  final builder = UPIRequestBuilder._(UPIRequestParameters._());
  buildFunc(builder);
  return builder._build();
}