create static method
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,
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);
}