className property

String get className

Provides config class name

Implementation

String get className {
  String? className = _getConfigValue(ConfigFieldType.CLASS);

  if (className != null) {
    return className;
  }

  final String fileName =
      RegExp(r'\/([\w_-]+)\.dart$').firstMatch(filePath)!.group(1)!;

  return fileName
      .split('_')
      .map((s) => '${s[0].toUpperCase()}${s.substring(1)}')
      .join('');
}