Artifact constructor
Artifact({})
Implementation
Artifact({
required this.kind,
required this.address,
this.path,
this.text,
this.meta = const {},
}) {
if (path == null && text == null) {
throw ArgumentError(
'An artifact needs somewhere to live: give it a path, inline text, or '
'both.',
);
}
}