BarcodeBox.deserialize constructor
BarcodeBox.deserialize(
- XmlElement node
Implementation
BarcodeBox.deserialize(XmlElement node) :
this.content = node.innerText.trim(),
super.deserialize(node) {
assert(this.size == null || !this.size!.height!.isInfinite, 'height 必须指定');
this.binding = node.getAttribute('binding');
this.format = node.getAttribute('format');
this.lineWidth = int.tryParse(node.getAttribute('lineWidth') ?? '') ?? 1;
this.showText = stringToBool(node.getAttribute('showText')) ?? false;
}