Skip to content

The argument type 'void Function(Map<String, dynamic>)' can't be assigned to the parameter type 'void Function(ActionResponse) #1

@kunzig940

Description

@kunzig940

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); }

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions