create static method
Date
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "date",
- String special_return_type = "date",
- num? day,
- num? month,
- num? year,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static Date create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "date",
String special_return_type = "date",
num? day,
num? month,
num? year,
}) {
// Date date = Date({
final Map date_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"day": day,
"month": month,
"year": year,
};
date_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (date_data_create_json.containsKey(key) == false) {
date_data_create_json[key] = value;
}
});
}
return Date(date_data_create_json);
}