Flexible constructor

const Flexible(
  1. int weight
)

Creates a flexible constraint.

Implementation

const Flexible(
  this.weight,
) : assert(weight >= 0, 'Weight must be non-negative');