ThawaniPayBtn constructor

const ThawaniPayBtn({
  1. Key? key,
  2. required String api,
  3. required List<Map> products,
  4. required void onCreate(
    1. Create create
    ),
  5. required void onCancelled(
    1. StatusClass payStatus
    ),
  6. required void onPaid(
    1. StatusClass payStatus
    ),
  7. Widget? child,
  8. required String pKey,
  9. Map<String, dynamic>? metadata,
  10. required String clintID,
  11. ButtonStyle? buttonStyle,
  12. bool? testMode,
  13. dynamic onError(
    1. Map error
    )?,
  14. String? successUrl,
  15. String? cancelUrl,
})

Implementation

const ThawaniPayBtn(
    {Key? key,
    required this.api,
    required this.products,
    required this.onCreate,
    required this.onCancelled,
    required this.onPaid,
    this.child,
    required this.pKey,
    this.metadata,
    required this.clintID,
    this.buttonStyle,
    this.testMode,
    this.onError,
    this.successUrl,
    this.cancelUrl})
    : super(key: key);