makeThemeColors static method

dynamic makeThemeColors(
  1. String className,
  2. String value, {
  3. String folderPath = themeColorsFolder,
  4. bool forceCreate = false,
})

Creates a new Stateful Widget.

Implementation

static makeThemeColors(String className, String value,
    {String folderPath = themeColorsFolder, bool forceCreate = false}) async {
  String filePath =
      '$folderPath/${className.toLowerCase()}_theme_colors.dart';

  await _makeDirectory(folderPath);
  await _checkIfFileExists(filePath, shouldForceCreate: forceCreate);
  await _createNewFile(filePath, value);
}