Validator constructor

Validator(
  1. String id,
  2. double stake
)

Implementation

Validator(this.id, this.stake) {
  if (stake < 0) throw ArgumentError('stake must be non-negative');
}