fix static method Null safety

DisplayMode fix(
  1. int fractionDigits,
  2. bool complex
)

Implementation

static DisplayMode fix(int fractionDigits, bool complex) => complex
    ? _ComplexMode(FixFloatFormatter(fractionDigits))
    : _FloatMode(FixFloatFormatter(fractionDigits));