list2 function

List<Object> list2(
  1. Object v1,
  2. Object v2
)

Create a two-element fixed-length list.

Implementation

List<Object> list2(Object v1, Object v2) => List(2)
  ..[0] = v1
  ..[1] = v2;