腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
参数
类型
'
Widget
Function
()‘
不能
赋值
给
参数
类型
'
String
?
Function
(
String
?)?’
在
颤动
中
、
、
我有4个<code>D3</code>方法,因为小部件代表<code>D4</code>,但当我试图调用我的验证器时,它发出红色信号说;
不能
将
参数
类型
<code>D6</code>分配给
参数
类型
<code
浏览 25
提问于2021-06-11
得票数 0
回答已采纳
2
回答
参数
类型
'void
Function
()‘
不能
赋值
给
参数
类型
'void
Function
(
String
)?’
我想在我的构造函数
中
传递一个函数,并想在next中使用。我也使用了VoidCallback而不是
Function
,但同样的错误显示...“无法将
参数
类型
'
Function
‘
赋值
给
参数
类型
'void
Function
()'” class MyTextFieldkey
浏览 2
提问于2021-09-20
得票数 0
1
回答
参数
类型
'
String
‘
不能
赋值
给
参数
类型
'Object?
Function
(Object?,Object?)?’
我正在使用dart,并且出现了这两个错误(
参数
类型
'
String
‘
不能
分配给
参数
类型
'Object?
Function
(Object?,Object?)?’。
参数
类型
'JsonDecoder‘
不能
分配给
参数
类型
'Map’。)
在
response.body和data
中
Main.dart import
浏览 218
提问于2021-08-01
得票数 0
回答已采纳
2
回答
参数
类型
'
String
?
Function
(
String
)‘
不能
分配给
参数
类型
'
String
?
Function
(
String
?)?’
、
、
、
上面的错误出现在main.dart代码
中
,并在代码中加粗显示。validate(
String
value) { } static
String
?validate(
String
value) { return value.isEmpty ?"Password can't be empty&q
浏览 10
提问于2022-04-12
得票数 2
回答已采纳
1
回答
参数
类型
'
String
Function
(
String
)‘
不能
分配给
参数
类型
'
String
?
Function
(
String
?)?’?
、
validator:
widget
.validator ?? state.validator, onSaved: state.onSaved,
浏览 6
提问于2022-05-23
得票数 -1
4
回答
不能
将
参数
类型
'Map<
String
,dynamic>
Function
()‘
赋值
给
参数
类型
'Map<
String
,dynamic>’
、
、
、
import 'package:cloud_firestore/cloud_firestore.dart'; final
String
name; final DocumentReference reference; : this.fromMap(**
浏览 102
提问于2020-08-26
得票数 13
回答已采纳
3
回答
参数
类型
'
Function
‘
不能
分配给
参数
类型
'
String
?
Function
(
String
?)?’
、
class PasswordTextFormField extends StatelessWidget { final
String
name;
Widget
buildborder: const OutlineInputBorder(), ),
浏览 9
提问于2021-12-20
得票数 0
1
回答
不能
将
参数
类型
'Object?
Function
()‘
赋值
给
参数
类型
'Map<
String
,dynamic>’
、
、
我
在
代码中发现了一些错误。所以请帮我解决这个错误。; });} 这是我的firestore类服务 class FirestoreService { final Transaction
浏览 17
提问于2021-08-24
得票数 0
4
回答
错误:
参数
类型
'
String
Function
(
String
)‘
不能
分配给
参数
类型
'
String
?
Function
(
String
?)?’
、
{ }} @override ),
浏览 2
提问于2021-07-09
得票数 3
回答已采纳
2
回答
错误:
参数
类型
'
Function
‘
不能
赋值
给
参数
类型
'void
Function
()?’
、
、
我是flutter的新手,我得到了错误: error : The argument type '
Function
' can't be assigned to the parameter type 'void
Function
()' 我做了一个餐饮应用。import 'package:recipes/screens/filters_screen.dart';
Widget</
浏览 448
提问于2021-07-20
得票数 0
1
回答
参数
类型
'
String
?‘
不能
赋值
给
参数
类型
'
String
‘
、
参数
类型
'
String
?‘
不能
被
赋值
给
参数
类型
'
String
‘我得到了这个错误,但是以前的代码工作正常。我看到人们提出了同样的问题,但不理解根本原因。
浏览 22
提问于2021-08-19
得票数 2
3
回答
参数
类型
“
String
”
不能
赋值
给
参数
类型
“
String
”
、
、
在下面的代码
中
我得到了错误“
参数
类型
'
String
‘
不能
被
赋值
给
参数
类型
'
String
'”: import 'dart:async';
浏览 564
提问于2021-07-27
得票数 1
回答已采纳
2
回答
Null相关错误-
参数
类型
'
String
?
Function
(
String
)‘
不能
分配给
参数
类型
'
String
?
Function
(
String
?)?’
、
相同的代码在教程视频
中
工作,不确定这里发生了什么。我认为这与零安全有关。 //const MyApp({Key key}) : super(key: key);
Widget
_name = ""; final GlobalKey<FormState> _formKey =
浏览 5
提问于2021-04-30
得票数 3
回答已采纳
1
回答
验证器问题:
参数
类型
'
String
?
Function
(
String
)‘
不能
分配给
参数
类型
'
String
?
Function
(
String
?)?’
、
、
、
String
?_validatename(
String
value) { if (value.isEmpty) {终端说这是因为_namecontroller与验证器
参数
不匹配
参数
类型
'
String
?
Function
(
String
)‘
不能
分配给
参数
类型
'<e
浏览 3
提问于2022-09-03
得票数 1
回答已采纳
1
回答
参数
类型
“void
Function
(
String
)”
不能
分配给
参数
类型
“void
Function
(
String
?)?”
、
Widget
_buildDropDownButton(
String
currencyCategory) { value: currencyCategory( Text(value), ), .toList(), }else {
浏览 138
提问于2021-08-20
得票数 1
回答已采纳
2
回答
参数
类型
'
Function
‘
不能
赋值
给
参数
类型
'void
Function
()?’。- '
Function
‘来自'dart:core’
、
、
、
package:flutter/material.dart'; class Answer extends StatelessWidget {// print("nishant");// a.clikk();
Wid
浏览 0
提问于2021-06-28
得票数 0
3
回答
错误:
参数
类型
'
String
?‘
不能
赋值
给
参数
类型
'
String
‘
、
、
、
、
我
在
ChatApp上工作,试图保存和上传图像,但是我得到了这样的错误,有人知道这是什么原因吗?我得到了这种
类型
的错误,我找不到任何解决方案.. import 'dart:io'; import 'package:cloud_firestore/cloud_firestore.dart{ Future
浏览 507
提问于2021-11-07
得票数 2
回答已采纳
1
回答
参数
类型
“void
Function
(
String
)”
不能
分配给
参数
类型
“void
Function
(
String
?)?”
在
DropdownButton
中
、
、
、
我正在尝试将DropdownButton小部件添加到我的应用程序
中
。', 'Cell-phone', 'Drone', 'earbuds', 'walkman'];
Widget
currentGadgets, ], } } 当我尝试执行这段代码时,这个错误出现在The ar
浏览 25
提问于2021-06-26
得票数 1
1
回答
参数
类型
'xxx‘
不能
分配给
参数
类型
'
Widget
?
Function
(BuildContext?,Map<
String
,List<
String
>>)’
、
, required this.handlerFunc}); final HandlerFunc handlerFunc;typedef
Widget
x) => x;字符串g(字符串y) => f(y); setState(() { });
Widget</em
浏览 14
提问于2022-05-27
得票数 0
1
回答
参数
类型
'CurrentUser?
Function
(User)‘
不能
赋值
给
参数
类型
'CurrentUser
Function
(User?)’
、
不能
将
参数
类型
‘
Function
(User?)'.dartargument_type_not_assignable ?
Function
( user)’
赋值
给
参数
类型
'CurrentUser CurrentUser? CurrentUser?_userFromFirebase(User User) package:brew_crew/services/auth.dart 我收到这个错误,我
浏览 11
提问于2021-06-27
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PHP 8:类型系统改进
AJAX开发教程之$.ajax常用方法详解
Dart快速入门,赶紧来get!
jQuery中获取服务器数据的方法
php反射API
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券