hasUserProvidedValue abstract method

bool hasUserProvidedValue(
  1. String fieldName
)

Checks if a field has a user-provided value.

Parameters:

  • fieldName: The field name to check

Returns:

  • true if the field was explicitly set
  • false if using the default value

Example:

if (annotation.hasUserProvidedValue('name')) {
  print('Name was explicitly configured');
}

Implementation

bool hasUserProvidedValue(String fieldName);