postInputs method
Implementation
Future<bool> postInputs(Map<String, dynamic> map) async {
if (_evt == null) throw Exception("The notification is null");
if (inputs == null || inputs!.length == 0)
throw Exception("No inputs were provided");
// check if we have set the data
var hasData = false;
for (var input in inputs!) {
if (map[input.resultKey] != null) {
hasData = true;
break;
}
}
if (!hasData) {
throw Exception("You must offer data with resultKey from inputs");
}
return NotificationsListener.postActionInputs(
_evt!.uniqueId!,
id!,
map,
);
}