operator [] method

FieldHint? operator [](
  1. String key
)

The hint for key, or null.

Implementation

FieldHint? operator [](String key) {
  for (final field in fields) {
    if (field.key == key) return field;
  }
  return null;
}