isValid method

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

Is valid Returns true if the given value is valid or false otherwise

Implementation

@override
bool isValid(value) {
  if (value is List) return false;

  if (!_list.contains(value)) return false;

  return true;
}