asField abstract method
Returns the field declaration if it is a field declaration, otherwise null.
Used when we confidently know that the declaration is a field declaration.
Example:
final field = field.asField();
Implementation
FieldDeclaration? asField();