create static method
ThemeSettings
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "themeSettings",
- String special_return_type = "themeSettings",
- num? accent_color,
- Background? background,
- BackgroundFill? outgoing_message_fill,
- bool? animate_outgoing_message_fill,
- num? outgoing_message_accent_color,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static ThemeSettings create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "themeSettings",
String special_return_type = "themeSettings",
num? accent_color,
Background? background,
BackgroundFill? outgoing_message_fill,
bool? animate_outgoing_message_fill,
num? outgoing_message_accent_color,
}) {
// ThemeSettings themeSettings = ThemeSettings({
final Map themeSettings_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"accent_color": accent_color,
"background": (background != null) ? background.toJson() : null,
"outgoing_message_fill": (outgoing_message_fill != null) ? outgoing_message_fill.toJson() : null,
"animate_outgoing_message_fill": animate_outgoing_message_fill,
"outgoing_message_accent_color": outgoing_message_accent_color,
};
themeSettings_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (themeSettings_data_create_json.containsKey(key) == false) {
themeSettings_data_create_json[key] = value;
}
});
}
return ThemeSettings(themeSettings_data_create_json);
}