StringMask constructor

StringMask(
  1. String pattern, {
  2. MaskOptions? options,
})

Implementation

StringMask(this.pattern, {this.options}) {
  if (options == null) {
    this.options = new MaskOptions();
  }

  if (this.options?.reverse == null) {
    this.options?.reverse = false;
  }

  if (this.options?.usedefaults == null) {
    this.options?.usedefaults = this.options?.reverse;
  }

  this.pattern = pattern;
}