checkAssertions method

void checkAssertions()

Checks that the assertions for this object are valid.

Implementation

void checkAssertions() {
  assert(!size.isEmpty, 'The size must not be empty.');
  assert(
    quality > 0 && quality <= 100,
    'The quality must be between 1 and 100',
  );
}