toNullableArray method Null safety

List? toNullableArray(
  1. dynamic value
)

Converts value into array object. Single values are converted into arrays with a single element.

  • value the value to convert. Returns array object or null when value is null.