Complex64List.fromList constructor

Complex64List.fromList(
  1. List<Complex> list
)

Implementation

factory Complex64List.fromList(List<Complex> list) {
  if (list is Complex64List) {
    return Complex64List._(Float64x2List.fromList(list._list));
  }
  return Complex64List._(
      Float64x2List.fromList(list.map((c) => c.toFloat64x2()).toList()));
}