valueType property

ValueType get valueType

converts 'className' string value to ValueType

Implementation

ValueType get valueType {
  if (className == 'int') return ValueType.int;
  if (className == 'double') return ValueType.double;
  if (className == 'String') return ValueType.string;
  if (className == 'bool') return ValueType.bool;
  if (className == 'DateTime') return ValueType.dateTime;
  if (className == 'Duration') return ValueType.duration;
  if (className == 'ByteData') return ValueType.byteData;
  if (className == 'UuidValue') return ValueType.uuidValue;
  if (className == 'List') return ValueType.list;
  if (className == 'Set') return ValueType.set;
  if (className == 'Map') return ValueType.map;
  if (isEnumType) return ValueType.isEnum;
  return ValueType.classType;
}