ChoicePage constructor

ChoicePage({
  1. Key? key,
  2. required String token,
  3. required String id,
  4. required String amount,
  5. String success_redirect_url = "",
  6. String error_redirect_url = "",
  7. String reference = '',
  8. bool hide_identity_form = false,
  9. String style = '',
  10. String gender = '',
  11. String name_shop = '',
  12. String redirecturl = '',
  13. String errorredirecturl = '',
  14. Map<String, dynamic> callback_info = const {},
  15. String trans_key = '',
  16. AppLocale locale = AppLocale.fr,
  17. void onPaymentResult(
    1. PaymentResult
    )?,
})

Implementation

ChoicePage({
  super.key,
  required this.token,
  required this.id,
  required this.amount,
  this.success_redirect_url = "",
  this.error_redirect_url = "",
  this.reference = '',
  this.hide_identity_form = false,
  this.style = '',
  this.gender = '',
  this.name_shop = '',
  this.redirecturl = '',
  this.errorredirecturl = '',
  this.callback_info = const {},
  this.trans_key = '',
  this.locale = AppLocale.fr,
  this.onPaymentResult,
});