isAvailable method
Whether the native coordinator path is available.
Caches the result after first probe. Returns false
if the native method is not implemented.
Implementation
Future<bool> isAvailable() async {
if (_available != null) return _available!;
try {
await _channel.invokeMethod<Map>(
'getNativeCoordinatorStatus',
);
_available = true;
SdkLogger.instance.info(SdkLogCategory.transaction, 'NativeCoordinatorAdapter: native coordinator available');
} catch (_) {
_available = false;
SdkLogger.instance.info(SdkLogCategory.transaction, 'NativeCoordinatorAdapter: native coordinator unavailable');
}
return _available!;
}