StringConverters extension
- on
Methods
-
toBool(
) → bool? -
Available on String, provided by the StringConverters extension
Returns eitherbool
ornull
. -
toDouble(
) → double? -
Available on String, provided by the StringConverters extension
Returns eitherdouble
ornull
. -
toInt(
{int? base}) → int? -
Available on String, provided by the StringConverters extension
Returns eitherint
ornull
. Takes base as parameters depending on base like 2, 8, 16. default base is 10.