Pattern constructor Null safety

Pattern()