create static method
RichTextSuperscript
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "richTextSuperscript",
- String special_return_type = "richText",
- RichText? text,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static RichTextSuperscript create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "richTextSuperscript",
String special_return_type = "richText",
RichText? text,
}) {
// RichTextSuperscript richTextSuperscript = RichTextSuperscript({
final Map richTextSuperscript_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"text": (text != null) ? text.toJson() : null,
};
richTextSuperscript_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (richTextSuperscript_data_create_json.containsKey(key) == false) {
richTextSuperscript_data_create_json[key] = value;
}
});
}
return RichTextSuperscript(richTextSuperscript_data_create_json);
}