contains method Null safety

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

Checks if this array contains a value. The check uses direct comparison between elements and the specified value.

  • value a value to be checked Returns true if this array contains the value or false otherwise.