create static method
LinkData
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "linkData",
- String? icon,
- String? title,
- String? value,
override
Generated
Implementation
static LinkData create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "linkData",
String? icon,
String? title,
String? value,
}) {
// LinkData linkData = LinkData({
final Map linkData_data_create_json = {
"@type": special_type,
"icon": icon,
"title": title,
"value": value,
};
linkData_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (linkData_data_create_json.containsKey(key) == false) {
linkData_data_create_json[key] = value;
}
});
}
return LinkData(linkData_data_create_json);
}