Sequence constructor

Sequence({
  1. required int seqType,
  2. required int value,
  3. bool isTypeBlock = true,
})

Implementation

Sequence(
    {required this.seqType, required this.value, this.isTypeBlock = true}) {
  if (seqType == TYPE_RELATIVE_TIMELOCK && (value < 1 || value > 0xffff)) {
    throw ArgumentError('Sequence should be between 1 and 65535');
  }
}