castArray function

List castArray(
  1. dynamic a
)

Implementation

List castArray(a) {
  if (a is List) return a;
  return [a];
}