LengthOrPercent constructor

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

Implementation

LengthOrPercent(
  double value, [
  Unit unit = Unit.px,
]) : super(
        value,
        unit,
        UnitType.lengthPercent,
      );