decodedPrettyPrint method

String? decodedPrettyPrint([
  1. bool withHints = false
])

Pretty print the decoded data

Implementation

String? decodedPrettyPrint([bool withHints = false]) {
  var ret = '';
  final values = getDecodedData();
  if (values == null) {
    return null;
  }

  late List<dataHints> hints;
  if (withHints) {
    hints = getDecodedHints();
  }
  final length = values.length;
  for (var i = 0; i < length; i++) {
    ret += 'Entry $i   : Value is => ${values[i].toString()}\n';
    if (withHints) {
      ret += '          : Hint is => ${hints[i].toString()}\n';
    }
  }
  return ret;
}