populator static method

FixedPointValuePopulator<FixedPointValue> populator({
  1. required int integerWidth,
  2. required int fractionWidth,
  3. bool signed = false,
})

Creates a FixedPointValuePopulator with the provided integerWidth and fractionWidth, which can then be used to complete construction of a FixedPointValue using population functions.

Implementation

static FixedPointValuePopulator populator(
        {required int integerWidth,
        required int fractionWidth,
        bool signed = false}) =>
    FixedPointValuePopulator(FixedPointValue.uninitialized(signed: signed)
      ..integerWidth = integerWidth
      ..fractionWidth = fractionWidth);