visibleTo method

bool visibleTo(
  1. TxnContext ctx
)

Determine if this version is visible to ctx.

Implementation

bool visibleTo(TxnContext ctx) {
  final created = ctx.canSeeCreatedBy(createdByTxn);
  final notDeleted = ctx.canSeeDeletedBy(deletedByTxn);
  return created && notDeleted;
}