getCurrentABIName method

  1. @override
Future<String?> getCurrentABIName()
override

Returns the ABI (Application Binary Interface) name for the current platform.

Example: "arm64-v8a", "x86_64".

Implementation

@override
Future<String?> getCurrentABIName() async {
  try {
    final String? abiName = await _methodChannel.invokeMethod(
      'getCurrentABIName',
    );
    return abiName;
  } on PlatformException catch (e) {
    logger.e("Failed to get current ABI name: '${e.message}'.");
    return null;
  }
}