StringConverters extension

on

Methods

toBool() bool?

Available on String, provided by the StringConverters extension

Returns either bool or null.
toDouble() double?

Available on String, provided by the StringConverters extension

Returns either double or null.
toInt({int? base}) int?

Available on String, provided by the StringConverters extension

Returns either int or null. Takes base as parameters depending on base like 2, 8, 16. default base is 10.