toAddress method

String toAddress([
  1. bool visible = true
])

Method to get the Tron address as a string, with an option to visible address (base58) or hex address

Implementation

String toAddress([bool visible = true]) {
  if (visible) {
    return _address;
  }
  return _hexAddress;
}