allEqual function

bool allEqual(
  1. dynamic str
)

Implementation

bool allEqual(str) {
  final RegExp re = RegExp(r'^(\d)\1+$');
  return re.hasMatch(str);
}