matches method

  1. @override
bool matches(
  1. String propertyName
)
override

Checks if a property name matches this convention's pattern.

Implementation

@override
bool matches(String propertyName) {
  if (propertyName.isEmpty) return false;
  // Starts with lowercase and may contain uppercase letters (no underscores, hyphens, etc.)
  return RegExp(r'^[a-z][a-zA-Z0-9]*$').hasMatch(propertyName);
}