initialize method

  1. @override
Future<void> initialize({
  1. required String key,
  2. String account = 'default_account',
  3. String primaryColorHex = '#008f21',
  4. String secondaryColorHex = '#004E1D',
  5. String currencyCode = 'BRL',
  6. bool isHomolog = false,
  7. bool enableLogs = false,
  8. double pollingTimeout = 360.0,
  9. double pollingInterval = 3.0,
  10. String paypalClientID = "default_paypal_client_id",
  11. int maxRetries = 0,
})
override

Implementation

@override
Future<void> initialize({
  required String key,
  String account = 'default_account',
  String primaryColorHex = '#008f21',
  String secondaryColorHex = '#004E1D',
  String currencyCode = 'BRL',
  bool isHomolog = false,
  bool enableLogs = false,
  double pollingTimeout = 360.0,
  double pollingInterval = 3.0,
  String paypalClientID = "default_paypal_client_id",
  int maxRetries = 0,
}) {
  return _m.invokeMethod('initialize', {
    'key': key,
    'account': account,
    'primaryColorHex': primaryColorHex,
    'secondaryColorHex': secondaryColorHex,
    'currencyCode': currencyCode,
    'isHomolog': isHomolog,
    'enableLogs': enableLogs,
    'pollingTimeout': pollingTimeout,
    'pollingInterval': pollingInterval,
    'paypalClientID': paypalClientID,
    'maxRetries': maxRetries,
  });
}