DistanceUnit.inch constructor

  1. @Assert('graduations % 2 == 0 && graduations >= 8 && graduations <= 100')
const DistanceUnit.inch(
  1. double value, {
  2. @Default(defaultGraduations) int graduations,
})

Implementation

@Assert('graduations % 2 == 0 && graduations >= 8 && graduations <= 100')
const factory DistanceUnit.inch(
  double value, {
  @Default(defaultGraduations) int graduations,
}) = Inch;