hasFieldWithoutSetter property

bool get hasFieldWithoutSetter

Returns true if some field doesn't have a setter (ignoring hashCode).

Implementation

bool get hasFieldWithoutSetter => _hasFieldWithoutSetter ??=
    fieldsWhere((f) => f.name != 'hashCode' && !f.hasSetter).isNotEmpty;