setData method
dynamic
setData(
- dynamic data
Set the data for the form validator
Implementation
setData(dynamic data) {
if (data is List) {
this.data = data.join(", ").toString();
return;
}
if (data is double) {
this.data = data.toString();
return;
}
if (data is int) {
this.data = data.toString();
return;
}
this.data = data ?? "";
}