toDouble extension this method can be used on string as an extension to convert a string into double
double? get toDouble => double.tryParse(this!);