setAsString method

  1. @override
void setAsString(
  1. String aValue
)
override

Implementation

@override
void setAsString(String aValue) {
  if (aValue.isEmpty) {
    clear(); // set to NULL (original comment kept as-is)
  } else {
    final c = double.tryParse(aValue);
    if (c == null) {
      databaseErrorFmt(SNotAFloat, [aValue]);
    }
    setAsCurrency(c!);
  }
}