FlattenFilter constructor Null safety

FlattenFilter()