DataMaterial constructor

const DataMaterial({
  1. String? source,
  2. String? text,
})

Implementation

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