fullInfo method

String fullInfo([
  1. int? number
])

Implementation

String fullInfo([int? number]) {
  if (errorsStack.isNotEmpty) {
    number = 1;
  }

  return '''
# ${number == null ? '' : '$number. '}Error details
${hasOriginalMessage ? '\n## Original error:' : ''}
${hasOriginalMessage ? originalMessage.toString() : ''}
${hasStackTrace ? '\n## Stack trace:' : ''}
${hasStackTrace ? trace.toString() : ''}
''';
}