stringProperty method

*<Null safety>*

StringProperty? stringProperty (String name)

Implementation

StringProperty? stringProperty(String name) {
  if (_writer == null) {
    return StringProperty.deleted();
  }
  if (_properties.containsKey(name)) {
    if (_properties[name] is! StringProperty) {
      throw InspectStateError("Can't create StringProperty named $name;"
          ' a different type exists.');
    }
    return _properties[name] as StringProperty?;
  }
  return _properties[name] = StringProperty._(name, this, _writer!);
}