hasDefaultValue property
Returns true if the reflectee has explicitly declared a default value.
Otherwise returns false.
Required capabilities: hasDefaultValue requires a DeclarationsCapability.
Implementation
@override
bool get hasDefaultValue {
if (!_supportsDeclarations(_reflector)) {
throw NoSuchCapabilityError(
'Attempt to get `hasDefaultValue` without `DeclarationsCapability`',
);
}
return (_descriptor & constants.hasDefaultValueAttribute != 0);
}