endsWith method

bool endsWith(
  1. num suffix
)

Check if the number ends with suffix. Returns true if the number ends with suffix, false otherwise.

Implementation

bool endsWith(num suffix) => toString().endsWith(suffix.toString());