YTCore constructor

YTCore({
  1. Key? key,
  2. required String clientId,
  3. required String title,
  4. required double amount,
  5. required String? backendUrl,
  6. double? maxWith,
  7. EdgeInsetsGeometry? padding,
  8. required bool showSuccessDialog,
  9. required String languageCode,
  10. dynamic onSuccess(
    1. dynamic response
    )?,
  11. dynamic onError(
    1. dynamic error
    )?,
})

Implementation

YTCore({
  super.key,
  required this.clientId,
  required this.title,
  required this.amount,
  required this.backendUrl,
  this.logo,
  this.maxWith,
  this.padding,
  required this.showSuccessDialog,
  required this.languageCode,
  this.onSuccess,
  this.onError,
});