hasField method

bool hasField(
  1. String name
)

return true, if the type has a named field name the field name

Implementation

bool hasField(String name) {
  return _fields[name] != null;
}