RegexModel.notStartsWith constructor

RegexModel.notStartsWith(
  1. String text, {
  2. String? title,
})

Does not start with text, e.g. notStartsWith('0') for an ID number.

Implementation

factory RegexModel.notStartsWith(String text, {String? title}) => RegexModel(
  title: title ?? RegexLabels.current.notStartsWith(text),
  test: (value) => !value.startsWith(text),
);