fromCamelCase method

  1. @override
String fromCamelCase(
  1. String propertyName
)
override

Converts a property name from camelCase to this convention.

@param propertyName The property name in camelCase format. @returns The property name converted to this convention's format.

Implementation

@override
String fromCamelCase(String propertyName) {
  if (propertyName.isEmpty) return propertyName;
  return propertyName[_firstCharacterIndex].toUpperCase() +
      propertyName.substring(1);
}