build method Null safety
override
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$DefaultBuildTarget build() {
_$DefaultBuildTarget _$result;
try {
_$result = _$v ??
new _$DefaultBuildTarget._(
blackListPatterns: blackListPatterns.build(),
outputLocation: _outputLocation?.build(),
buildFilters: _buildFilters?.build(),
reportChangedAssets: BuiltValueNullFieldError.checkNotNull(
reportChangedAssets,
'DefaultBuildTarget',
'reportChangedAssets'),
target: BuiltValueNullFieldError.checkNotNull(
target, 'DefaultBuildTarget', 'target'));
} catch (_) {
late String _$failedField;
try {
_$failedField = 'blackListPatterns';
blackListPatterns.build();
_$failedField = 'outputLocation';
_outputLocation?.build();
_$failedField = 'buildFilters';
_buildFilters?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'DefaultBuildTarget', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}