validateIntegrity method Null safety

VerificationContext validateIntegrity(
  1. Insertable<D> instance,
  2. {bool isInserting = false}

Validates that the given entity can be inserted into this table, meaning that it respects all constraints (nullability, text length, etc.).


VerificationContext validateIntegrity(Insertable<D> instance,
    {bool isInserting = false}) {
  // default behavior when users chose to not verify the integrity (build time
  // option)
  return const VerificationContext.notEnabled();