stringToInt property

FieldParser<String, int> stringToInt
final

Create a FieldParser for a String type to a decimal integer.

Implementation

static final stringToInt = FieldParser<String, int>(
  from: String,
  to: int,
  parserFunction: (v) => int.tryParse(v, radix: 10),
);