painter property Null safety

Painter? painter
final

Implementation

final Painter? painter;