authorizeNetToken static method Null safety

Future<String> authorizeNetToken(
  1. {required dynamic env,
  2. required dynamic cardNumber,
  3. required dynamic expirationMonth,
  4. required dynamic expirationYear,
  5. required dynamic cardCvv,
  6. required dynamic zipCode,
  7. required dynamic cardHolderName,
  8. required dynamic apiLoginId,
  9. required dynamic clientId}
)

Implementation

static Future<String> authorizeNetToken(
    {required env,
    required cardNumber,
    required expirationMonth,
    required expirationYear,
    required cardCvv,
    required zipCode,
    required cardHolderName,
    required apiLoginId,
    required clientId}) async {
  final String version =
      await _channel.invokeMethod('authorizeNetToken', <String, String>{
    'env': env,
    'card_number': cardNumber,
    'expiration_month': expirationMonth,
    'expiration_year': expirationYear,
    'card_cvv': cardCvv,
    'zip_code': zipCode,
    'card_holder_name': cardHolderName,
    'api_login_id': apiLoginId,
    'client_id': clientId,
  });
  return version;
}