VoteWitnessContract constructor
VoteWitnessContract({
- required TronAddress ownerAddress,
- List<
VoteWitnessContractVote> ? votes, - 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);