createAttendanceLog method
Implementation
Future<void> createAttendanceLog(
List<AttendanceLogModel> logs, String type, bool createOpLog) async {
final lastLog = logs.where((l) => l.type == type).lastOrNull;
await attendanceLogLocalRepository?.create(
lastLog!,
createOpLog: createOpLog &&
(logs.where((l) => l.type == 'ENTRY').lastOrNull?.time !=
logs.where((l) => l.type == 'EXIT').lastOrNull?.time),
);
}