Open jtkeyva opened 2 years ago
Hey, wanted to try it out but i can't get it to run. Running Flutter SDK 2.2.0 and getting this error:
`Command PhaseScriptExecution failed with a nonzero exit code
Showing Recent Messages lib/utils/event_bus.dart:30:29: Error: The argument type 'void Function(T/1/)' can't be assigned to the parameter type 'void Function(T/2/)'.
- 'T/1/' is from 'unknown'.
- 'T/2/' is from 'package:discordclone/utils/event_bus.dart' ('lib/utils/event_bus.dart'). eventBus.on().listen(func);
^
lib/utils/event_bus.dart:34:26: Error: The argument type 'void Function(T)' can't be assigned to the parameter type 'void Function(dynamic)'.
eventBus.on().listen(func); ^
`
Any help appreciated. Thanks!
SAME ERROR ON MY SIDE ALSO
Hey, wanted to try it out but i can't get it to run. Running Flutter SDK 2.2.0 and getting this error:
`Command PhaseScriptExecution failed with a nonzero exit code
Showing Recent Messages lib/utils/event_bus.dart:30:29: Error: The argument type 'void Function(T/1/)' can't be assigned to the parameter type 'void Function(T/2/)'.
'T/1/' is from 'unknown'.
'T/2/' is from 'package:discordclone/utils/event_bus.dart' ('lib/utils/event_bus.dart').
eventBus.on().listen(func);
lib/utils/event_bus.dart:34:26: Error: The argument type 'void Function(T)' can't be assigned to the parameter type 'void Function(dynamic)'.
`
Any help appreciated. Thanks!