jonataslaw / jonataslaw/VideoCompress

Unhandled Exception: type 'Future<String?>' is not a subtype of type 'FutureOr<String>' in type cast

Open
#120 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
262
Forks
344
PR merge metrics
No merged PRs in 30d

Description

Hi, a found a bug here:

Future getMediaInfo(String path) async {
**final jsonStr = await (_invoke('getMediaInfo', {'path': path}) as FutureOr);**
final jsonMap = json.decode(jsonStr);
return MediaInfo.fromJson(jsonMap);
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.