getField method Null safety
- String name
Return a representation of the value of the field with the given
null if either the object being represented does not have a field
with the given name or if the implementation of the class of the object is
invalid, making it impossible to determine that value of the field.
Note that, unlike the mirrors API, this method does not invoke a getter; it simply returns a representation of the known state of a field.
DartObject? getField(String name);