isDigitAndPlus static method

bool isDigitAndPlus(
  1. String? input
)

Implementation

static bool isDigitAndPlus(String? input) {
  if (input == null || input.isEmpty) return false;
  return RegExp(r'^-?[0-9+]+$').hasMatch(input);
}