LcdContents constructor Null safety

LcdContents(
  1. {required String mainText,
  2. required ShiftKey shift,
  3. required SignMode sign,
  4. required int bits,
  5. required bool cFlag,
  6. required bool complexFlag,
  7. required bool gFlag,
  8. required bool prgmFlag,
  9. required bool rightJustify,
  10. required bool windowEnabled,
  11. required bool euroComma,
  12. required bool hideComplement,
  13. required int? wordSize,
  14. required TrigMode trigMode,
  15. required bool userMode,
  16. ShiftKey? extraShift}
)

Implementation

LcdContents(
    {required this.mainText,
    required this.shift,
    required this.sign,
    required this.bits,
    required this.cFlag,
    required this.complexFlag,
    required this.gFlag,
    required this.prgmFlag,
    required this.rightJustify,
    required this.windowEnabled,
    required this.euroComma,
    required this.hideComplement,
    required this.wordSize,
    required this.trigMode,
    required this.userMode,
    this.extraShift})
    : blank = false;