Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Platform exception error #6

Open
prabhunath111 opened this issue Apr 30, 2020 · 0 comments
Open

Platform exception error #6

prabhunath111 opened this issue Apr 30, 2020 · 0 comments

Comments

@prabhunath111
Copy link

When I am debugging.
getting null typedResult.

@optionalTypeArgs
Future invokeMethod(String method, [ dynamic arguments ]) async {
print('inside invoke method $method');
assert(method != null);
final ByteData result = await binaryMessenger.send(
name,
codec.encodeMethodCall(MethodCall(method, arguments)),
);
print('result $result');
if (result == null) {
print('result is null');
throw MissingPluginException('No implementation found for method $method on channel $name');
}
final T typedResult = codec.decodeEnvelope(result);

print('typedResult $typedResult');

return typedResult;

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant