XPathInteger constructor

XPathInteger(
  1. BigInt value, [
  2. XPathType type = xsInteger,
  3. int? intValue
])

Creates an xs:integer value from a BigInt and optional type.

Implementation

new(this.value, [this.type = xsInteger, int? intValue])
  : intValue = intValue ?? (value.isValidInt ? value.toInt() : null);