create static method

ThemeParameters create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "themeParameters",
  3. String special_return_type = "themeParameters",
  4. num? background_color,
  5. num? secondary_background_color,
  6. num? header_background_color,
  7. num? bottom_bar_background_color,
  8. num? section_background_color,
  9. num? section_separator_color,
  10. num? text_color,
  11. num? accent_text_color,
  12. num? section_header_text_color,
  13. num? subtitle_text_color,
  14. num? destructive_text_color,
  15. num? hint_color,
  16. num? link_color,
  17. num? button_color,
  18. num? button_text_color,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static ThemeParameters create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "themeParameters",
  String special_return_type = "themeParameters",
  num? background_color,
  num? secondary_background_color,
  num? header_background_color,
  num? bottom_bar_background_color,
  num? section_background_color,
  num? section_separator_color,
  num? text_color,
  num? accent_text_color,
  num? section_header_text_color,
  num? subtitle_text_color,
  num? destructive_text_color,
  num? hint_color,
  num? link_color,
  num? button_color,
  num? button_text_color,
}) {
  // ThemeParameters themeParameters = ThemeParameters({
  final Map themeParameters_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "background_color": background_color,
    "secondary_background_color": secondary_background_color,
    "header_background_color": header_background_color,
    "bottom_bar_background_color": bottom_bar_background_color,
    "section_background_color": section_background_color,
    "section_separator_color": section_separator_color,
    "text_color": text_color,
    "accent_text_color": accent_text_color,
    "section_header_text_color": section_header_text_color,
    "subtitle_text_color": subtitle_text_color,
    "destructive_text_color": destructive_text_color,
    "hint_color": hint_color,
    "link_color": link_color,
    "button_color": button_color,
    "button_text_color": button_text_color,
  };

  themeParameters_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (themeParameters_data_create_json.containsKey(key) == false) {
        themeParameters_data_create_json[key] = value;
      }
    });
  }
  return ThemeParameters(themeParameters_data_create_json);
}