version static method

Future<String?> version()

version function that returns the OpenCV version

Implementation

static Future<String?> version() async {
  String? version;
  try {
    version = await platform.invokeMethod('getVersion');
  } on PlatformException catch (e) {
    version = "Fallo la llamada al metodo: '${e.message}'.";
  }
  return version;
}