camel_case property

String? get camel_case

Implementation

String? get camel_case {
  if (this == null) return null;
  if (this!.isEmpty) return this;
  return this!
      .replaceAllMapped(RegExp(r'_[a-z]'), (Match m) => m[0]!.toUpperCase())
      .replaceAll('_', '')
      .trim();
}