Barcode constructor

Barcode(
  1. Object? data, {
  2. BarcodeKind type = BarcodeKind.qrCode,
  3. double width = 200,
  4. double height = 200,
  5. ColorToken? foregroundColor,
  6. ColorToken? backgroundColor,
  7. bool showText = false,
  8. String? name,
  9. Object? visible,
})

Implementation

Barcode(
  Object? data, {
  this.type = BarcodeKind.qrCode,
  this.width = 200,
  this.height = 200,
  this.foregroundColor,
  this.backgroundColor,
  this.showText = false,
  String? name,
  Object? visible,
}) : data = normalizeExpression(data),
     super(name: name, visible: _normalizeVisibility(visible));