isDeprecated property

bool isDeprecated

Returns true if this field has a deprecationReason.

Implementation

bool get isDeprecated => deprecationReason?.isNotEmpty == true;