RuleOptions constructor

RuleOptions({
  1. bool? trim,
  2. bool? lowerCase,
  3. bool? upperCase,
})

Implementation

RuleOptions({
  this.trim,
  this.lowerCase,
  this.upperCase,
}) {
  trim = trim ?? false;
  lowerCase = lowerCase ?? false;
  upperCase = upperCase ?? false;

  if (lowerCase! && upperCase!) {
    throw "Both 'lowerCase' and 'upperCase' in the rule options cannot be true";
  }
}