CalculatorEnterButton constructor Null safety

CalculatorEnterButton(
  1. ButtonFactory factory,
  2. String uText,
  3. String fText,
  4. String gText,
  5. Operation uKey,
  6. Operation fKey,
  7. Operation gKey,
  8. String rawKeyboardKey,
  9. {required double extraHeight,
  10. String? acceleratorLabel,
  11. Key? key}
)

Implementation

CalculatorEnterButton(
    ButtonFactory factory,
    String uText,
    String fText,
    String gText,
    Operation uKey,
    Operation fKey,
    Operation gKey,
    String rawKeyboardKey,
    {required this.extraHeight,
    String? acceleratorLabel,
    Key? key})
    : _outerBorder = _calculateOuterBorder(factory, extraHeight),
      _innerBorder = _calculateInnerBorder(factory, extraHeight),
      _lowerSurface = _calculateLowerSurface(factory, extraHeight),
      _upperSurface = _calculateUpperSurface(factory, extraHeight),
      _gTextOffset = factory.gTextOffset.translate(0, extraHeight),
      super(factory, uText, fText, gText, uKey, fKey, gKey, rawKeyboardKey,
          acceleratorLabel: acceleratorLabel, key: key);