value property
String
get
value
Get value for config class
If pattern
is specified, value will injected into it
Implementation
String get value {
String? pattern = _pattern;
if (pattern == null && _isStringType) {
pattern = '\'__VALUE__\'';
}
if (_nullable && (_fieldValue == null || _fieldValue == 'null')) {
return 'null';
}
if (pattern == null) {
return _fieldValue!;
}
return pattern.replaceAll(_PATTERN_REGEXP, _fieldValue!);
}