concatText property
String
concatText
Concatenates the text from all OTP input fields.
Implementation
String get concatText {
String text = '';
for (var element in list) {
if (text.isEmpty) {
text = element.textEditingController!.text;
} else {
text = '$text${element.textEditingController!.text}';
}
}
return text;
}