AccountId constructor

AccountId({
  1. List<int>? name,
  2. required TronAddress address,
})

Factory method to create an instance of AccountId with an unmodifiable list for the 'name' field.

Implementation

AccountId({List<int>? name, required this.address})
    : name = BytesUtils.tryToBytes(name, unmodifiable: true);