ReferencedModel.assertRequired constructor
ReferencedModel.assertRequired({
- String? id,
- DataRefModel? ref,
Constructs a new instance of ReferencedModel, and asserts that all required parameters are not null.
Implementation
factory ReferencedModel.assertRequired({
String? id,
DataRefModel? ref,
}) {
assert(id != null);
assert(ref != null);
return ReferencedModel(
id: id,
ref: ref,
);
}