Lean.manageConsents constructor

const Lean.manageConsents({
  1. Key? key,
  2. required String appToken,
  3. required String? customerId,
  4. LeanCallback? callback,
  5. String? accessToken,
  6. Map<String, String>? customization,
  7. LeanActionCancelled? actionCancelled,
  8. bool isSandbox = true,
  9. bool showLogs = false,
  10. String version = 'latest',
  11. String env = 'production',
  12. LeanCountry country = LeanCountry.ae,
  13. LeanLanguage language = LeanLanguage.en,
})

Implementation

const Lean.manageConsents({
  super.key,
  required this.appToken,
  required this.customerId,
  this.callback,
  this.accessToken,
  this.customization,
  this.actionCancelled,
  this.isSandbox = true,
  this.showLogs = false,
  this.version = 'latest',
  this.env = 'production',
  this.country = LeanCountry.ae,
  this.language = LeanLanguage.en,
})  : _method = LeanMethods.manageConsents,
      allowPaymentSourceChange = null,
      permissions = null,
      accessTo = null,
      accessFrom = null,
      bankIdentifier = null,
      paymentDestinationId = null,
      failRedirectUrl = null,
      successRedirectUrl = null,
      accountId = null,
      reconnectId = null,
      customerName = null,
      consentId = null,
      showBalances = null,
      paymentSourceId = null,
      paymentIntentId = null,
      customerMetadata = null,
      showConsentExplanation = null,
      destinationAlias = null,
      destinationAvatar = null,
      consentAttemptId = null,
      granularStatusCode = null,
      statusAdditionalInfo = null,
      riskDetails = null,
      initializationUrl = '';