asInt property

int get asInt

Implementation

int get asInt => toString() == 'null' ? 0 : int.parse(toString());