Text constructor

Text({
  1. String? type,
  2. String? lang,
  3. String? start,
  4. String? end,
  5. String? value,
})

Constructor for creating a Text object.

The constructor initializes a Text object with optional named parameters:

  • type: The type attribute value of the text.
  • lang: The lang attribute value of the text.
  • start: The start attribute value of the text.
  • end: The end attribute value of the text.
  • value: The value of the text.

Implementation

Text({
  this.type,
  this.lang,
  this.start,
  this.end,
  this.value,
});