readImageInfo method

  1. @override
Future<String> readImageInfo(
  1. String imagePath
)
override

Implementation

@override
Future<String> readImageInfo(String imagePath) async {
  try {
    final String result = await methodChannel.invokeMethod(
      'readImageInfo',
      {'imagePath': imagePath},
    );
    return result;
  }on PlatformException catch (e) {
    throw Exception("${e.message}");
  }
  catch (e) {
    throw Exception("Unexpected error: ${e.toString()}");
  }
}