PaymentWebView constructor

const PaymentWebView({
  1. Key? key,
  2. required String initialUrl,
  3. required String callBackUrl,
  4. required dynamic onPaymentCallbackReached(
    1. Map<String, String> parameters
    ),
  5. required String webViewTitle,
  6. required Color textColor,
  7. required Color themeColor,
})

Constructor for PaymentWebView widget.

initialUrl - The initial URL to load in the webview. callBackUrl - The callback URL used to detect payment completion. onPaymentCallbackReached - Callback function to handle payment completion. webViewTitle - The title of the webview. textColor - The text color used in the app. themeColor - The theme color used in the app.

Implementation

const PaymentWebView({
  super.key,
  required this.initialUrl,
  required this.callBackUrl,
  required this.onPaymentCallbackReached,
  required this.webViewTitle,
  required this.textColor,
  required this.themeColor,
});