![flutter报错The type of the function literal can't be inferred because the literal has a block as its body.A value of type 'String?' can't be assigned to a variable of type 'String'. flutter报错The type of the function literal can't be inferred because the literal has a block as its body.A value of type 'String?' can't be assigned to a variable of type 'String'.](https://pic.wangt.cc/download/pic_router.php?path=https://img-blog.csdnimg.cn/f75d1feed0f04a419f278ed0dd7fe62c.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAdGFuZ2RvdTM2OTA5ODY1NQ==,size_20,color_FFFFFF,t_70,g_se,x_16)
flutter报错The type of the function literal can't be inferred because the literal has a block as its body.A value of type 'String?' can't be assigned to a variable of type 'String'.
![What is typedef in Flutter/Dart?. A minimalist intruduction to typedefs | by Hasan Basri Bayat | ITNEXT What is typedef in Flutter/Dart?. A minimalist intruduction to typedefs | by Hasan Basri Bayat | ITNEXT](https://miro.medium.com/max/1400/1*3c4-yFRo5XsTBwhRxHFBvA.png)
What is typedef in Flutter/Dart?. A minimalist intruduction to typedefs | by Hasan Basri Bayat | ITNEXT
![Designing a search string and Boolean operators - Finding scientific information - LibGuides at Oulu University Designing a search string and Boolean operators - Finding scientific information - LibGuides at Oulu University](https://s3.amazonaws.com/libapps/accounts/3182/images/rautalanka_copy.gif)
Designing a search string and Boolean operators - Finding scientific information - LibGuides at Oulu University
![Four tools to improve the efficiency of Flutter development | Welcome to Monstarlab's Engineering Blog Four tools to improve the efficiency of Flutter development | Welcome to Monstarlab's Engineering Blog](https://engineering.monstar-lab.com/assets/img/articles/2020-12-08-Four-tools-to-improve-the-efficiency-of-Flutter-development/2-1.png)
Four tools to improve the efficiency of Flutter development | Welcome to Monstarlab's Engineering Blog
![The official version of Flutter 2.5 is released, bringing a number of major updates - SegmentFault 思否 The official version of Flutter 2.5 is released, bringing a number of major updates - SegmentFault 思否](https://img-blog.csdnimg.cn/4728c5599ac74daca895d0206319df3b.png)
The official version of Flutter 2.5 is released, bringing a number of major updates - SegmentFault 思否
![flutter - Null Related Error - The argument type 'String? Function(String)' can't be assigned to the parameter type 'String? Function(String?)?' - Stack Overflow flutter - Null Related Error - The argument type 'String? Function(String)' can't be assigned to the parameter type 'String? Function(String?)?' - Stack Overflow](https://i.stack.imgur.com/Gco6Q.png)
flutter - Null Related Error - The argument type 'String? Function(String)' can't be assigned to the parameter type 'String? Function(String?)?' - Stack Overflow
![Exploring String methods in Dart. In my last article, I talked about… | by Darshan Kawar | Flutter Community | Medium Exploring String methods in Dart. In my last article, I talked about… | by Darshan Kawar | Flutter Community | Medium](https://miro.medium.com/max/1208/1*Y2EjdXtirW4LS0D87L_0Iw.png)