toNumber method

num? toNumber()

convert value in Number

Implementation

num? toNumber() => isNotEmptyOrNull ? num.tryParse(this!) : null;