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 == BitcoinOpCodeConst.typeRelativeTimelock &&
      (value < 1 || value > BinaryOps.mask16)) {
    throw const DartBitcoinPluginException(
      'Sequence should be between 1 and 65535',
    );
  }
}