Crossword constructor
const
Crossword({
- Key? key,
- required List<
List< letters,String> > - required Offset spacing,
- bool? drawCrossLine,
- required dynamic onLineDrawn(),
- bool? drawHorizontalLine,
- bool? drawVerticalLine,
- required List<
String> hints, - LineDecoration? lineDecoration,
- TextStyle? textStyle,
- bool? acceptReversedDirection = false,
- bool? transposeMatrix = false,
- bool? allowOverlap = false,
- bool? addIncorrectWord = true,
Implementation
const Crossword({
super.key,
required this.letters,
required this.spacing,
this.drawCrossLine,
required this.onLineDrawn,
this.drawHorizontalLine,
this.drawVerticalLine,
required this.hints,
this.lineDecoration,
this.textStyle,
this.acceptReversedDirection = false,
this.transposeMatrix = false,
this.allowOverlap = false,
this.addIncorrectWord = true,
}) : assert(
(drawCrossLine ?? true) ||
(drawHorizontalLine ?? true) ||
(drawVerticalLine ?? true),
"At least one of drawCrossLine, drawHorizontalLine, or drawVerticalLine should be true",
);