italicText method Null safety

  1. @protected
BPItem italicText(
  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 italicText(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,
        fontStyle: FontStyle.italic);