toConstantName method

String toConstantName()

Converts the asset name to a valid Dart constant name.

Transforms the asset name using camelCase convention and ensures it's a valid Dart identifier.

Example: 'my-icon.png' becomes 'myIcon'

Implementation

String toConstantName() {
  return name.camelCase;
}