stringValue property

String stringValue

Returns a String or an empty String if rawValue is not a String

Implementation

String get stringValue {
  if (_rawValue is String) {
    return _rawValue as String;
  } else if (_rawValue is bool || _rawValue is int || _rawValue is double) {
    return '$_rawValue';
  }

  return '';
}