DrawableText constructor

DrawableText(
  1. String? id,
  2. Paragraph? fill,
  3. Paragraph? stroke,
  4. Offset offset,
  5. DrawableTextAnchorPosition anchor, {
  6. Float64List? transform,
})

Creates a new DrawableText object.

One of fill or stroke must be specified.

Implementation

DrawableText(
  this.id,
  this.fill,
  this.stroke,
  this.offset,
  this.anchor, {
  this.transform,
}) : assert(fill != null || stroke != null);