MessageList constructor Null safety

MessageList(
  1. {Iterable<Message>? list}
)

Implementation

factory MessageList({
  $core.Iterable<Message>? list,
}) {
  final _result = create();
  if (list != null) {
    _result.list.addAll(list);
  }
  return _result;
}