asInt method

num? asInt()

Will attempt to return a int from the string value or null if it cannot.

Implementation

num? asInt() => int.tryParse(this);