pathTheme method

List<String>? pathTheme(
  1. String themeName, {
  2. required bool isCustomParent,
})

Returns the path for the theme class name.

If isCustomParent, places it under overrides/themes, otherwise under ui/themes.

Implementation

List<String>? pathTheme(String themeName, { required bool isCustomParent }) {
  final filename = _namedObjectToFilename(themeName, "Theme");
  if(filename == null) {
    return null;
  }
  final path = isCustomParent ? overrideThemesPath : themesPath;
  return _createPath(path, filename);
}