toHumanizedName method

String toHumanizedName({
  1. String? locale,
})

Gets a humanized transformation of this SymbolName under the assumption that it is camel-, pascal-, snake-, or kebab-cased.

// 'some symbol name'
SymbolName('someSymbolName').toHumanizedName();

// 'another symbol name'
SymbolName('another_symbol_name').toHumanizedName();

See also:

Implementation

String toHumanizedName({String? locale}) =>
    const SymbolToHumanizedNameTransformation()
        .transform(this, locale ?? Intl.getCurrentLocale());