Running the example code results in the subject error:
The argument type 'void Function(Map<String, dynamic>)' can't be assigned to the parameter type 'void Function(ActionResponse)
final onMessageCallback = ActionCallback( name: 'on_receive_message', callback: onReceiveMessage, );
void onReceiveMessage(Map<String, dynamic> data) { final message = data['data']['message']; debugPrint(message); }
Running the example code results in the subject error:
The argument type 'void Function(Map<String, dynamic>)' can't be assigned to the parameter type 'void Function(ActionResponse)
final onMessageCallback = ActionCallback( name: 'on_receive_message', callback: onReceiveMessage, );void onReceiveMessage(Map<String, dynamic> data) { final message = data['data']['message']; debugPrint(message); }