create static method

Text create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "text",
  3. String special_return_type = "text",
  4. String? text,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static Text create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "text",
  String special_return_type = "text",
  String? text,
}) {
  // Text text = Text({
  final Map text_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "text": text,
  };

  text_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (text_data_create_json.containsKey(key) == false) {
        text_data_create_json[key] = value;
      }
    });
  }
  return Text(text_data_create_json);
}