contains method

bool contains(
  1. num substring
)

Check if the number contains substring. Returns true if the number contains substring, false otherwise.

Implementation

bool contains(num substring) => toString().contains(substring.toString());