EntityId constructor Null safety

EntityId(
  1. {Any? id}
)

Implementation

factory EntityId({
  $5.Any? id,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  return _result;
}