ScanRange.fromXml constructor

ScanRange.fromXml(
  1. XmlElement xml
)

Implementation

ScanRange.fromXml(XmlElement xml) {
  final endProp = getProp(xml, 'End')?.value;
  end = endProp != null ? int.tryParse(endProp) : null;

  final startProp = getProp(xml, 'Start')?.value;
  start = startProp != null ? int.tryParse(startProp) : null;
}