isValid method

bool isValid(
  1. ValidatedQuantity validatedQuantity
)

Implementation

bool isValid(ValidatedQuantity validatedQuantity) =>
    validate(validatedQuantity.unit) == null;