Content constructor
Describes a block of content.
Note: Strings filled with whitespace will be considered as (invalid) empty values.
Implementation
factory Content({
required String name,
String? piece,
String? target,
}) {
assertStringIsFilled(value: name, name: 'name');
assertStringIsFilled(value: piece, name: 'piece');
assertStringIsFilled(value: target, name: 'target');
return Content._(
name: name,
piece: piece,
target: target,
);
}