toDouble property

double? toDouble

toDouble extension this method can be used on string as an extension to convert a string into double

Implementation

double? get toDouble => double.tryParse(this!);