freeze method Null safety

List<T> freeze()

Implementation

List<T> freeze() {
  return List.unmodifiable(this);
}