toArray static method
Converts value into array object with empty array as default. Single values are converted into arrays with single element.
value
the value to convert. Returns array object or empty array when value is null.
See toNullableArray
Implementation
static List toArray(value) {
var result = ArrayConverter.toNullableArray(value);
return result ?? [];
}