String documentation

Source

@override
String get documentation {
  if (name == 'values') {
    return 'A constant List of the values in this enum, in order of their declaration.';
  } else if (name == 'index') {
    return 'The integer index of this enum.';
  } else {
    return super.documentation;
  }
}