camelCaseToLabel property
String
get
camelCaseToLabel
Implementation
String get camelCaseToLabel {
RegExp exp = RegExp(r'(?<=[a-z])[A-Z]');
return capitalize().replaceAllMapped(
exp,
(Match m) => ' ${m.group(0)!}',
);
}