validators/sanitizers/to_number library

Extensions

ToNumberX on String
Extension providing numeric and date conversions on String.

Functions

toDate(String str) DateTime?
Converts the string to a DateTime.
toFloat(String str) double?
Converts the string to a double.
toInt(String str, {int? radix}) int?
Converts the string to an integer.