checkValue method

  1. @override
bool checkValue(
  1. dynamic value
)
override

Implementation

@override
bool checkValue(dynamic value) {
  if (value is List) {
    if (value.isEmpty) {
      // todo workaround until not expression is implemented for V2
      return true;
    } else {
      return value.any((element) => choices.contains(element));
    }
  }
  return choices.contains(value);
}