Platform constructor Null safety

Platform()