text method Null safety

  1. @protected
BPItem text(
  1. String text,
  2. {bool box = false,
  3. double scale = 1,
  4. TextAlign align = TextAlign.left,
  5. Offset offset = Offset.zero,
  6. Offset boxOffset = Offset.zero}
)

Implementation

@protected
BPItem text(String text,
        {bool box = false,
        double scale = 1,
        TextAlign align = TextAlign.left,
        Offset offset = Offset.zero,
        Offset boxOffset = Offset.zero}) =>
    _TextItem(text, this,
        box: box,
        scale: scale,
        align: align,
        offset: offset,
        boxOffset: boxOffset);