buildExtensionName function

String buildExtensionName(
  1. String extensionName
)

Returns the name for a single extension.

Consists out of the name of the custom group & its type. E.g. Design token:

specialColors: {
  color1: {
    value: #000000,
    type: color
  }
}

to name -> SpecialColorsThemeExtension

Implementation

String buildExtensionName(String extensionName) {
  return '${extensionName.firstUpperCased}ThemeExtension';
}