ITFBarCodeParams constructor

ITFBarCodeParams(
  1. String data, {
  2. bool withText = false,
  3. double lineWidth = 2.0,
  4. double barHeight = 100.0,
  5. double wideBarRatio = 2.5,
  6. double quietZoneRatio = 10.0,
  7. double bearerBarRatio = 3.0,
  8. bool withBearerBars = true,
  9. String? altText,
})

Implementation

ITFBarCodeParams(
  String data, {
  bool withText = false,
  double lineWidth = 2.0,
  double barHeight = 100.0,
  this.wideBarRatio = 2.5,
  this.quietZoneRatio = 10.0,
  this.bearerBarRatio = 3.0,
  this.withBearerBars = true,
  String? altText,
})  : assert(wideBarRatio >= 2.25 && wideBarRatio <= 3.0,
          "wideBarRatio must be between 2.25 and 3.0"),
      assert(quietZoneRatio >= 10,
          "quietZoneRatio must be greater or equal to 10"),
      assert(bearerBarRatio >= 2,
          "bearerBarRatio must be greater or equal to 2"),
      super(data, withText, lineWidth, barHeight, altText);