isValid property

bool get isValid

Validation helper

Implementation

bool get isValid {
  if (coolDownDuration?.isNegative == true) return false;
  if (delayBeforeFirstTapDuration?.isNegative == true) return false;
  if (minDisabledDuration?.isNegative == true) return false;
  if (maxDuration?.isNegative == true) return false;
  if (groupId?.trim().isEmpty == true) return false;
  if (rateLimitMaxTokens <= 0) return false;
  if (rateLimitTokensPerRefill <= 0) return false;
  if (rateLimitRefillInterval.isNegative) return false;
  return true;
}