initShortCuts function
void
initShortCuts(})
Implementation
void initShortCuts(
Widget homePage, {
Set<Set<LogicalKeyboardKey>>? keysToPress,
Set<Function(BuildContext context)>? onKeysPressed,
Set<String>? helpLabel,
Widget? helpGlobal,
String? helpTitle,
IconData? helpIcon,
}) async {
if (keysToPress != null &&
onKeysPressed != null &&
helpLabel != null &&
keysToPress.length == onKeysPressed.length &&
onKeysPressed.length == helpLabel.length) {
_newGlobal = [];
for (var i = 0; i < keysToPress.length; i++) {
_newGlobal.add(Tuple3(keysToPress.elementAt(i), onKeysPressed.elementAt(i), helpLabel.elementAt(i)));
}
}
_homeWidget = homePage;
_customGlobal = helpGlobal!;
_customTitle = helpTitle;
_customIcon = helpIcon;
}