saveConfig method
void
saveConfig()
Implementation
void saveConfig() {
// var impotant = faces.any((e) =>
// (e.detectionType == DetectionType.SMILE ||
// e.detectionType == DetectionType.EYES_BLINK) &&
// e.checked);
// if (faces.where((e) => e.checked).length <= 1 || !impotant) {
// ScaffoldMessenger.of(context).showSnackBar(SnackBar(
// content: 'Vui lòng chọn từ 2 hành động phát hiện khuôn mặt trở lên'
// .tr
// .text
// .make(),
// duration: Dimens.snapBarDuration,
// ));
// } else {
// config.value.faceConfig.listDetectorType =
// faces.where((e) => e.checked).map((e) => e.detectionType).toList();
Application.setConfig(config.value);
Get.toNamed(Routes.WELCOME);
// }
}