how to check if a value exists in a list dart code example Example: dart check if value is in list list.contains(x); Contains method