DataRefModel.assertRequired constructor

DataRefModel.assertRequired({
  1. String? id,
  2. List<String>? collection,
})

Constructs a new instance of DataRefModel, and asserts that all required parameters are not null.

Implementation

factory DataRefModel.assertRequired({
  String? id,
  List<String>? collection,
}) {
  assert(collection != null);
  return DataRefModel(
    id: id,
    collection: collection,
  );
}