make method
Iterable<BarcodeElement>
make(
- String data, {
- required double width,
- required double height,
- bool drawText = false,
- double? fontHeight,
- 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,
);
}