isValid property

bool isValid

Implementation

bool get isValid {
  return (width > 0) && (height > 0) && (x >= 0) && (y >= 0);
}