XPathBoolean.fromBool constructor

XPathBoolean.fromBool(
  1. bool val
)

Creates a boolean atomic value from val.

Implementation

factory fromBool(bool val) => val ? trueInstance : falseInstance;