TouchSurface constructor
const
TouchSurface({
- required int rows,
- required int columns,
- required void onTouch(
- Point<
int> coordinates, - TouchAreaEvent event
- Point<
- bool canPop = false,
- Map<
Point< areaDescriptions = const {},int> , String> - Map<
GameShortcutsShortcut, Point< areaShortcuts = const {},int> > - Widget childBuilder(
- BuildContext context,
- Point<
int> point
- Key? key,
Create an instance.
Implementation
const TouchSurface({
required this.rows,
required this.columns,
required this.onTouch,
this.canPop = false,
this.areaDescriptions = const {},
this.areaShortcuts = const {},
this.childBuilder,
super.key,
}) : assert(
columns > 0 && rows > 0,
'Both `rows` and `columns` must be at least 1.',
);