const DataMaterial({this.source, this.text}) : assert( (source == null) != (text == null), 'a material is a source path or text, not both', );