Length constructor

const Length(
  1. double value, {
  2. LengthUnit unit = LengthUnit.px,
})

Implementation

const Length(this.value, {this.unit = LengthUnit.px});