Skip to content

MethodChannel is called for platforms that dont have some implementations such as endNativeFrames #1176

Description

@marandaneto

Description

For example

final json = await _channel.invokeMapMethod<String, dynamic>(
'endNativeFrames', {'id': id.toString()});
return (json != null) ? NativeFrames.fromJson(json) : null;
} catch (error, stackTrace) {
_logError('endNativeFrames', error, stackTrace);
return null;

On the Web, endNativeFrames returns an empty string so it fails to cast to <String, dynamic>.
Since we swallow its exceptions, it's not a problem, but we should not call such methods in the first place, only for Android, iOS, and macOS for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions