NameConfig constructor

NameConfig({
  1. required String? renameWith,
  2. MustacheTag? tag,
  3. String prefix = '',
  4. String suffix = '',
  5. StringOr<SectionConfig>? section,
  6. int braces = Constants.kDefaultBraces,
})

Implementation

NameConfig({
  required this.renameWith,
  this.tag,
  this.prefix = '',
  this.suffix = '',
  this.section,
  this.braces = Constants.kDefaultBraces,
})  : assert(
        renameWith == null || renameWith.isNotEmpty,
        'renameWith cannot be empty',
      ),
      assert(
        braces == 2 || braces == 3,
        'braces must be 2 or 3',
      ),
      assert(
        tag == null || tag.isFormat,
        'format must be a format tag',
      );