name property

String get name

name override

Implementation

String get name {
  if (value.value is bool) {
    return value.value ? 'true' : 'false';
  } else if (value.value is num) {
    return value.value.toString();
  } else {
    throw ArgumentError('Invalid alternative: ${value.value}');
  }
}