alphanumeric property

String get alphanumeric

Implementation

String get alphanumeric {
  // Match all non alphanumeric characters and replace them with a space
  final pattern = RegExp(r'[^a-zA-Z0-9]');
  final result = replaceAll(pattern, ' ');
  return result.pascalCase;
}