VoteWitnessContract constructor

VoteWitnessContract({
  1. required TronAddress ownerAddress,
  2. List<VoteWitnessContractVote>? votes,
  3. bool? support,
})

Create a new VoteWitnessContract instance with specified parameters.

Implementation

VoteWitnessContract(
    {required this.ownerAddress,
    List<VoteWitnessContractVote>? votes,
    this.support})
    : votes = votes == null
          ? null
          : List<VoteWitnessContractVote>.unmodifiable(votes);