toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  return '''
    TronChainParameters {
      getMaintenanceTimeInterval: $getMaintenanceTimeInterval,
      getAccountUpgradeCost: $getAccountUpgradeCost,
      getCreateAccountFee: $getCreateAccountFee,
      getTransactionFee: $getTransactionFee,
      getAssetIssueFee: $getAssetIssueFee,
      getWitnessPayPerBlock: $getWitnessPayPerBlock,
      getWitnessStandbyAllowance: $getWitnessStandbyAllowance,
      getCreateNewAccountFeeInSystemContract: $getCreateNewAccountFeeInSystemContract,
      getCreateNewAccountBandwidthRate: $getCreateNewAccountBandwidthRate,
      getAllowCreationOfContracts: $getAllowCreationOfContracts,
      getRemoveThePowerOfTheGr: $getRemoveThePowerOfTheGr,
      getEnergyFee: $getEnergyFee,
      getExchangeCreateFee: $getExchangeCreateFee,
      getMaxCpuTimeOfOneTx: $getMaxCpuTimeOfOneTx,
      getAllowUpdateAccountName: $getAllowUpdateAccountName,
      getAllowSameTokenName: $getAllowSameTokenName,
      getAllowDelegateResource: $getAllowDelegateResource,
      getTotalEnergyLimit: $getTotalEnergyLimit,
      getAllowTvmTransferTrc10: $getAllowTvmTransferTrc10,
      getTotalEnergyCurrentLimit: $getTotalEnergyCurrentLimit,
      getAllowMultiSign: $getAllowMultiSign,
      getAllowAdaptiveEnergy: $getAllowAdaptiveEnergy,
      getTotalEnergyTargetLimit: $getTotalEnergyTargetLimit,
      getTotalEnergyAverageUsage: $getTotalEnergyAverageUsage,
      getUpdateAccountPermissionFee: $getUpdateAccountPermissionFee,
      getMultiSignFee: $getMultiSignFee,
      getAllowAccountStateRoot: $getAllowAccountStateRoot,
      getAllowProtoFilterNum: $getAllowProtoFilterNum,
      getAllowTvmConstantinople: $getAllowTvmConstantinople,
      getAllowTvmSolidity059: $getAllowTvmSolidity059,
      getAllowTvmIstanbul: $getAllowTvmIstanbul,
      getAllowShieldedTRC20Transaction: $getAllowShieldedTRC20Transaction,
      getForbidTransferToContract: $getForbidTransferToContract,
      getAdaptiveResourceLimitTargetRatio: $getAdaptiveResourceLimitTargetRatio,
      getAdaptiveResourceLimitMultiplier: $getAdaptiveResourceLimitMultiplier,
      getChangeDelegation: $getChangeDelegation,
      getWitness127PayPerBlock: $getWitness127PayPerBlock,
      getAllowMarketTransaction: $getAllowMarketTransaction,
      getMarketSellFee: $getMarketSellFee,
      getMarketCancelFee: $getMarketCancelFee,
      getAllowPBFT: $getAllowPBFT,
      getAllowTransactionFeePool: $getAllowTransactionFeePool,
      getMaxFeeLimit: $getMaxFeeLimit,
      getAllowOptimizeBlackHole: $getAllowOptimizeBlackHole,
      getAllowNewResourceModel: $getAllowNewResourceModel,
      getAllowTvmFreeze: $getAllowTvmFreeze,
      getAllowTvmVote: $getAllowTvmVote,
      getAllowTvmLondon: $getAllowTvmLondon,
      getAllowTvmCompatibleEvm: $getAllowTvmCompatibleEvm,
      getAllowAccountAssetOptimization: $getAllowAccountAssetOptimization,
      getFreeNetLimit: $getFreeNetLimit
      getTotalNetLimit: $getTotalNetLimit
      getAllowHigherLimitForMaxCpuTimeOfOneTx: $getAllowHigherLimitForMaxCpuTimeOfOneTx
      getAllowAssetOptimization: $getAllowAssetOptimization
      getMemoFee: $getMemoFee
      getAllowDelegateOptimization: $getAllowDelegateOptimization
      getUnfreezeDelayDays: $getUnfreezeDelayDays
      getAllowOptimizedReturnValueOfChainId: $getAllowOptimizedReturnValueOfChainId
      getAllowDynamicEnergy: $getAllowDynamicEnergy
      getDynamicEnergyIncreaseFactor: $getDynamicEnergyIncreaseFactor
      getDynamicEnergyThreshold: $getDynamicEnergyThreshold
      getDynamicEnergyMaxFactor: $getDynamicEnergyMaxFactor
      getAllowTvmShangHai: $getAllowTvmShangHai
      getAllowCancelAllUnfreezeV2: $getAllowCancelAllUnfreezeV2
      getMaxDelegateLockPeriod: $getMaxDelegateLockPeriod

''';
}