StringNumExten extension

on

Methods

parseDouble({int digits = 0, double defValue = 0}) double

Available on String?, provided by the StringNumExten extension

数字字符串转double
parseInt({int defValue = 0}) int

Available on String?, provided by the StringNumExten extension

将数字字符串转int
parseNum({int digits = 0, num defValue = 0}) num

Available on String?, provided by the StringNumExten extension

将数字字符串转num,数字保留x位小数