Width constructor

Width(
  1. double value, [
  2. Unit unit = Unit.px
])

Implementation

Width(super.value, [super.unit = Unit.px])
    : assert(value >= 0, 'Width value must be non-negative');