getField method Null safety

VariableDeclaration? getField(
  1. String name
)

Returns the field declared in the class/mixin with the given name, or null if there is no such field.

Implementation

VariableDeclaration? getField(String name);