initialize method
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,
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,
});
}