make method

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

Implementation

@override
Iterable<BarcodeElement> make(
  String data, {
  required double width,
  required double height,
  bool drawText = false,
  double? fontHeight,
  double? textPadding,
}) {
  final DataMatrixEncoder encoder = DataMatrixEncoder()..ascii(data);
  return makeBytes(
    encoder.toBytes(),
    width: width,
    height: height,
    drawText: drawText,
    fontHeight: fontHeight,
    textPadding: textPadding,
  );
}