ot::Preference::IsValid() method
Indicates whether a given `int8_t` preference value is valid, i.e., whether it has of the three values `kHigh`, `kMedium`, or `kLow`.
Syntax
static bool IsValid(int8_t aPrf); Arguments
aPrf
The signed preference value to check.
Return value
TRUE if @p aPrf is valid. FALSE if @p aPrf is not valid