RegexModel.noSpaces constructor

RegexModel.noSpaces({
  1. String? title,
})

Contains no whitespace.

Implementation

factory RegexModel.noSpaces({String? title}) => RegexModel(
  title: title ?? RegexLabels.current.noSpaces,
  test: (value) => !value.contains(RegExp(r'\s')),
);