painter property Null safety

TextPainter? painter

Implementation

TextPainter? get painter => _painter;