validateApiKey method

Future<bool> validateApiKey(
  1. String apiKey
)

Validate API key format using native validation

Implementation

Future<bool> validateApiKey(String apiKey) async {
  try {
    final result = await _channel.invokeMethod<bool>('validateApiKey', {
      'apiKey': apiKey,
    });
    return result ?? false;
  } on PlatformException {
    return false;
  }
}