make method

Iterable<BarcodeElement> make(
  1. String data, {
  2. required double width,
  3. required double height,
  4. bool drawText = false,
  5. double? fontHeight,
  6. double? textPadding,
})

Implementation

Iterable<BarcodeElement> make(
  String data, {
  required double width,
  required double height,
  bool drawText = false,
  double? fontHeight,
  double? textPadding,
}) => makeBytes(
  utf8.encoder.convert(data),
  width: width,
  height: height,
  drawText: drawText,
  fontHeight: fontHeight,
  textPadding: textPadding,
);