NameConfig constructor
NameConfig({
- required String? renameWith,
- MustacheTag? tag,
- String prefix = '',
- String suffix = '',
- StringOr<
SectionConfig> ? section, - 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',
);