AccountResourceModel constructor
AccountResourceModel({})
Implementation
AccountResourceModel({
required this.freeNetUsed,
required this.freeNetLimit,
required this.netLimit,
required this.netUsed,
required this.energyLimit,
required this.energyUsed,
required this.tronPowerLimit,
required this.tronPowerUsed,
}) {
totalBandWith = freeNetLimit + netLimit;
totalBandWithUsed = netUsed + freeNetUsed;
howManyEnergy = energyLimit - energyUsed;
if (howManyEnergy < BigInt.zero) {
howManyEnergy = BigInt.zero;
}
}