toWeightString static method

String toWeightString(
  1. int? weight
)

Implementation

static String toWeightString(int? weight) => weight == null ? "" : (weight / 1000).toStringAsFixed(2);