toEncodeBarcodeParams method

EncodeBarcodeParams toEncodeBarcodeParams(
  1. String contents
)

Implementation

EncodeBarcodeParams toEncodeBarcodeParams(String contents) {
  final Pointer<EncodeBarcodeParams> p = calloc<EncodeBarcodeParams>();
  p.ref.contents = contents.toNativeUtf8().cast<Char>();
  p.ref.width = width;
  p.ref.height = height;
  p.ref.format = format;
  p.ref.margin = margin;
  p.ref.eccLevel = eccLevel.value;
  return p.ref;
}