我想删除连续的重复项,而不是连续的空白行,但是它也要删除连续的空白单元格。这是我的代码:
TextField(
focusNode: mailFocusNode,
onTap: () {
FocusScope.of(context).requestFocus(mailFocusNode);
},
decoration: InputDecoration(
labelText: "E-mail",
labelStyle: TextStyle(color: Colors.purple),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white),
borderRadius: BorderRadius.circular(25.0),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white),
borderRadius: BorderRadius.circular(25.0),
),
),
keyboardType: TextInputType.emailAddress,
controller: _controllerEmail,
onChanged: (String value) {
setState(() {
_email = value;
});
},
),
答案 0 :(得分:0)
您必须使用O(n^1/2)
函数来检查单元格是否为空或包含值。空格被视为值。
IsEmpty()