WeightRestriction constructor

WeightRestriction(
  1. int valueInKilograms,
  2. WeightRestrictionType type
)

Creates a new instance.

  • valueInKilograms The maximum allowed weight.
  • type The type of the weight restriction.

Implementation

WeightRestriction(this.valueInKilograms, this.type);