format method

String format([
  1. String? details
])

Formats the error message with the error code.

Implementation

String format([String? details]) => details != null
    ? '$details [${qname.stringValue}]'
    : '$message [${qname.stringValue}]';