includes function

bool includes(
  1. String searchString,
  2. String s, [
  3. int? position
])

Checks if a string includes a substring.

print(includes('ell', 'hello')); // Outputs: true

Implementation

bool includes(String searchString, String s, [int? position]) =>
    s.contains(searchString, position ?? 0);