toClassName method

String toClassName()

Converts the directory name to a valid Dart class name.

Transforms the directory name using PascalCase convention.

Example: 'app-icons' becomes 'AppIcons'

Implementation

String toClassName() {
  return directory.pascalCase;
}