onSelectSunriseNotification
全部标签 我正在使用Flutter开发应用。在下面的代码中我收到了这个警告。Thetypeoffunctionliteralcan'tbeinferredbecausetheliteralhasablockasitsbody.varonSelectSunriseNotification=(){print('SunriseNotificationclicked');}; 最佳答案 将var替换为void将删除该警告。Thisissue和你的很像。voidonSelectSunriseNotification=(){print('SunriseN
我正在使用Flutter开发应用。在下面的代码中我收到了这个警告。Thetypeoffunctionliteralcan'tbeinferredbecausetheliteralhasablockasitsbody.varonSelectSunriseNotification=(){print('SunriseNotificationclicked');}; 最佳答案 将var替换为void将删除该警告。Thisissue和你的很像。voidonSelectSunriseNotification=(){print('SunriseN