BaseThemeConfig<T> constructor

BaseThemeConfig<T>({
  1. required String id,
  2. required String description,
  3. required ThemeData theme(
    1. T colorStyles
    ),
  4. required T colors,
  5. NyThemeType type = NyThemeType.light,
  6. Map<String, dynamic>? meta,
})

Create a new BaseThemeConfig.

Implementation

BaseThemeConfig(
    {required this.id,
    required this.description,
    required this.theme,
    required this.colors,
    this.type = NyThemeType.light,
    this.meta}) {
  if (meta == null) {
    this.meta = {};
  }
  this.meta?.addAll({"type": type});
}