CrossButton constructor

const CrossButton(
  1. {required GlobalKey<CrossButtonState> globalKey,
  2. required Pair<int, int> position,
  3. required GlobalKey<ShakeWidgetState> shakeKey,
  4. required List<GlobalKey<BlinkWidgetState>> shakeKeyColors,
  5. required ValueNotifier<SelectionModes> selectionMode,
  6. required ValueNotifier<List<CrossButton>> coloredButtons,
  7. required ValueNotifier<List<CrossButton>> selectedButtons,
  8. required List<Row> buttons,
  9. required ResultNotifier resultValueNotifier}
)

It's the constructor of the class.

Implementation

const CrossButton({
  required this.globalKey,
  required this.position,
  required this.shakeKey,
  required this.shakeKeyColors,
  required this.selectionMode,
  required this.coloredButtons,
  required this.selectedButtons,
  required this.buttons,
  required this.resultValueNotifier,
}) : super(key: globalKey);