OutputDescriptor constructor
OutputDescriptor({
- String? id,
- required String schema,
- String? name,
- String? description,
- dynamic styles,
- DisplayProperty? display,
Implementation
OutputDescriptor(
{String? id,
required this.schema,
this.name,
this.description,
this.styles,
this.display})
: id = id ?? Uuid().v4() {
if (styles != null) {
if (styles is! String || styles is! EntityStyles) {
throw Exception('unexpected Datatype for styles property');
}
}
}