sourceAsString property

String sourceAsString

The string value from the name source input.

Implementation

String get sourceAsString {
  var input = '';
  if (source == null) input = 'null';
  if (source is String) input = source;
  if (source is List<String>) input = source.join(' ');
  if (source is Name) input = source.toString();
  if (source is List<Name>) input = source.map((n) => n.toString()).join(' ');
  return input;
}