makeText method

Iterable<BarcodeElement> makeText(
  1. String data,
  2. double width,
  3. double height,
  4. double fontHeight,
  5. double textPadding,
  6. double lineWidth,
)

Implementation

Iterable<BarcodeElement> makeText(
  String data,
  double width,
  double height,
  double fontHeight,
  double textPadding,
  double lineWidth,
) sync* {
  yield BarcodeText(
    left: 0,
    top: height - fontHeight,
    width: width,
    height: fontHeight,
    text: data,
    align: BarcodeTextAlign.center,
  );
}