startsWith method

bool startsWith(
  1. num prefix
)

Check if the number starts with prefix. Returns true if the number starts with prefix, false otherwise.

Implementation

bool startsWith(num prefix) => toString().startsWith(prefix.toString());