TaggedReplay<LogicType extends Logic> constructor

TaggedReplay<LogicType extends Logic>(
  1. LogicType data, {
  2. required int tagWidth,
  3. int reasonWidth = 1,
  4. String? name,
})

Creates a tagged replay payload.

Implementation

TaggedReplay(LogicType data,
    {required this.tagWidth, this.reasonWidth = 1, String? name})
    : super([
        data,
        Logic(name: 'tag', width: tagWidth),
        Logic(name: 'reason', width: reasonWidth),
      ], name: name ?? '${data.name}_replay') {
  _validatePositiveWidth(tagWidth, 'tagWidth');
  _validatePositiveWidth(reasonWidth, 'reasonWidth');
}