getPluralCaseFrom<T> method

MapEntry<T, Message>? getPluralCaseFrom<T>(
  1. T id,
  2. Node node,
  3. List<String> arguments
)

Implementation

MapEntry<T, Message>? getPluralCaseFrom<T>(
  T id,
  Node node,
  List<String> arguments,
) {
  final childMessage = node.children.firstWhere((e) => e.type == ST.message);
  final parsedMessage = MessageParser.parseNode(childMessage, arguments);
  if (parsedMessage != null) {
    return MapEntry(id, parsedMessage);
  } else {
    return null;
  }
}