Calculate class
主类,主要作用是空间命名
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
divide(
num a, num b) → num - 相除计算方法
-
formatList(
List< String> list) → List<String> - 去除一个数字列表中数学计算符号有相重的问题。
-
LinierCalculate(
String str) → num - 计算一个数学计算字符串的值
-
ListCalculate(
List< String> list) → num - 计算一个正常的数字计算列表
-
multiply(
num a, num b) → num - 相乘计算方法
-
percent(
num a, num b) → num - 百分比,消费计算方法
-
plus(
num a, num b) → num - 相加计算方法
-
substract(
num a, num b) → num - 相减计算方法
-
toNumberList(
String str, {bool onlyNumber = false}) → List< String> - toNumberList从一端字符串中解析出数字list onlyNumber bool false 是否也包括一些计算符号