Typescript Type Of Function Parameter Flutter