toIntArray static method

  1. @Deprecated('no message.')
List<int> toIntArray(
  1. List<int>? list
)

Implementation

@Deprecated('no message.')
static List<int> toIntArray(List<int>? list) {
  if (list == null || list.isEmpty) {
    return _EMPTY_INT_ARRAY;
  }
  final result = List.generate(list.length, (index) => list[index]);

  return result;
}