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