calcLogEntryAtTime method

int? calcLogEntryAtTime(
  1. DateTime time
)
inherited

Implementation

int? calcLogEntryAtTime(DateTime time) {
  final interestKey = logSubEntryIdOfTime.lastKeyBefore(time.microsecondsSinceEpoch);
  if (interestKey == null) return null;

  final logSubEntryId = logSubEntryIdOfTime[interestKey];
  final logEntryId = logEntryIdOfLogSubEntry[logSubEntryId];

  return logEntryId;
}