hasDigit static method

bool hasDigit(
  1. String input
)

Returns whether the input contains a digit.

Implementation

static bool hasDigit(String input) => RegExp(r'\d').hasMatch(input);