toWeightInt static method

int toWeightInt(
  1. String? weight
)

Implementation

static int toWeightInt(String? weight) => (Decimal.parse(weight??"0") * Decimal.parse("1000")).toInt();