Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
mshanak opened this issue · comments
hello
I am trying to run the app on IOS, but it keeps showing me the following error in the console:
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Compiler message:
file:///development/flutter/.pub-cache/hosted/pub.dartlang.org/beacons-0.3.0/lib/channel/helper.dart:18:56: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///development/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: 'while invoking ${channel.name}/$method',
^
The following modification would solve this issue.
context: DiagnosticsNode.message('while invoking ${channel.name}/$method'),
Hi @oaansari , thank you for the suggestion, the fix works fine. Are there any plans on making a new release with this fix? I am really new to Flutter development, but it looks weird that the issue is still there one year later...