includes method

bool includes(
  1. dynamic value, [
  2. int byteOffset,
  3. String encoding
])

Equivalent to indexOf() != -1.

Implementation

external bool includes(value, [int byteOffset, String encoding]);