description property

String description

The Dart declaration of this field, excluding its value.

Implementation

String get description {
  var buffer = new StringBuffer();
  if (isStatic && owner is! VMLibraryRef) buffer.write("static ");
  if (isConst) {
    buffer.write("const ");
  } else if (isFinal) {
    buffer.write("final ");
  }
  if (declaredType is! VMTypeInstanceRef ||
      (declaredType as VMTypeInstanceRef).name != "dynamic") {
    buffer.write("$declaredType ");
  } else if (!isConst && !isFinal) {
    buffer.write("var ");
  }
  buffer.write(name);
  return buffer.toString();
}