build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Comment build() {
_$Comment _$result;
try {
_$result = _$v ??
new _$Comment._(
text: text.build(),
commentType: BuiltValueNullFieldError.checkNotNull(
commentType, 'Comment', 'commentType'),
error: _error?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'text';
text.build();
_$failedField = 'error';
_error?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Comment', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}