SocialsFactory<T> constructor

SocialsFactory<T>({
  1. String defaultSuffix = 'n',
  2. String defaultIndex = '1',
  3. RegExp? suffixRegExp,
  4. RegExp? objectRegExp,
  5. RegExp? wordRegExp,
  6. RegExp? upperCaseRegExp,
})

Default constructor.

Implementation

SocialsFactory(
    {this.defaultSuffix = 'n',
    this.defaultIndex = '1',
    RegExp? suffixRegExp,
    RegExp? objectRegExp,
    RegExp? wordRegExp,
    RegExp? upperCaseRegExp})
    : this.suffixRegExp =
          suffixRegExp ?? RegExp('%([0-9]*)([a-zA-Z]*)([|]([a-zA-Z]+))?'),
      this.objectRegExp = objectRegExp ??= RegExp(r'\[([^\]]+)\]'),
      this.wordRegExp = wordRegExp ?? RegExp(r'\S+\s*'),
      this.upperCaseRegExp = upperCaseRegExp ?? RegExp('[A-Z]');