getPrecondition method Null safety

Precondition? getPrecondition(
  1. PreconditionId id
)

Returns desired precondition or null, if it's not registered by registerPrecondition() or registerAggregatePrecondition()

Implementation

Precondition? getPrecondition(PreconditionId id) {
  return _known[id];
}