Dart报错处理—The parameter ‘xxx‘ can‘t have a value of ‘null‘ because of its type ‘XXX‘, but...
总结在Dart中定义带有可选参数的函数时报错"The parameter 'name' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'."的处理方法。
原创
2022-05-29 12:23:26 ·
3728 阅读 ·
0 评论