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;
  // All lowercase letters, no special characters
  return RegExp(r'^[a-z][a-z0-9]*$').hasMatch(propertyName);
}