Transformer constructor Null safety

Transformer()