Mode constructor Null safety

Mode()