sendForMap method
Send a command and expect a Map result.
Implementation
@override
Future<Map<String, dynamic>?> sendForMap(NativeCommand command) async {
sentCommands.add(command);
final key = '${command.service}.${command.command}';
final response = stubbedResponses[key];
if (response is Map) {
return response.cast<String, dynamic>();
}
return null;
}