toCompanion method

CacheSummaryCompanion toCompanion(
  1. bool nullToAbsent
)

Implementation

CacheSummaryCompanion toCompanion(bool nullToAbsent) {
  return CacheSummaryCompanion(
    id: Value(id),
    size: Value(size),
    modified: modified == null && nullToAbsent
        ? const Value.absent()
        : Value(modified),
    maxSize: maxSize == null && nullToAbsent
        ? const Value.absent()
        : Value(maxSize),
  );
}