Index constructor Null safety

Index()