checkWeight method

  1. @override
int checkWeight(
  1. int weight
)
override

Implementation

@override
int checkWeight(int weight) {
  if (weight < 10000) {
    return weight;
  }
  return weight - 10000;
}