I want to create some Pair in Dart (Flutter) e.g.
Pair('text', 'some text here')
Pair('my_value', '233')
and pass it to Android activity (kotlin) via MethodChannel
How Can I do that? I've create a Dart function which takes HashMap but I a bit lost in it and not sure how proceed with that.
static Future<void> sendMessage({
HashMap? customData
}) async {
_eventChannel.invokeMethod('message', {
'customData': customData
});
}