setValueFromString method

  1. @override
void setValueFromString(
  1. String valueString
)
override

Sets the value from a String.

Implementation

@override
void setValueFromString(String valueString) {
  if (valueString.isEmpty) {
    value = null;
  } else {
    value = int.parse(valueString);
  }
}