put method Null safety

void put(
  1. int index,
  2. dynamic value
)

Puts a new value into array element specified by its index.

  • index an index of the element to put.
  • value a new value for array element.