nativeConverterAvailable top-level property

bool get nativeConverterAvailable

Whether the native bridge is loadable on this host right now.

A host without the native library for its platform reports false rather than throwing, so a consumer can check before it converts.

Implementation

bool get nativeConverterAvailable {
  try {
    NativeLibrary();
    return true;
  } on StateError {
    return false;
  } on ArgumentError {
    return false;
  }
}