addArgumentFor function

void addArgumentFor(
  1. MainMessage message,
  2. String arg,
  3. Map result
)

Implementation

void addArgumentFor(MainMessage message, String arg, Map result) {
  var extraInfo = {};
  if (message.examples.isNotEmpty && message.examples[arg] != null) {
    extraInfo["example"] = message.examples[arg];
  }
  result[arg] = extraInfo;
}