ReferencedModel.assertRequired constructor

ReferencedModel.assertRequired({
  1. String? id,
  2. 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,
  );
}