getBinaryFileVersion method

  1. @override
Future<String?> getBinaryFileVersion(
  1. String filePath
)
override

Gets the version of a binary file.

filePath is the absolute path to the binary file. Returns the version string of the file or null if not available.

Implementation

@override
Future<String?> getBinaryFileVersion(String filePath) async {
  final version = await methodChannel
      .invokeMethod<String?>('getBinaryFileVersion', {'filePath': filePath});
  return version;
}