clonePopulator method

  1. @mustBeOverridden
FixedPointValuePopulator<FixedPointValue> clonePopulator()

Creates a FixedPointValuePopulator for the same type as this and with the same widths.

This must be overridden in subclasses so that the correct type of FixedPointValuePopulator is returned for generating equivalent types of FixedPointValues.

Implementation

@mustBeOverridden
FixedPointValuePopulator clonePopulator() =>
    FixedPointValuePopulator(FixedPointValue.uninitialized(signed: signed)
      ..integerWidth = integerWidth
      ..fractionWidth = fractionWidth);