static Future<ImageInfo> getImageInfo( File file, ) async { final json = await _invokeMethod('getImageInfo', { 'path': file.path, }); return ImageInfo.fromJson(json); }