toListOfInt method

List<int> toListOfInt()

The integer-valued numbers of this array, within the safe integer range (±(2^53 - 1)); larger values are skipped rather than capped. (With dart2wasm, dartify returns JS numbers as doubles.)

Implementation

List<int> toListOfInt() => toDart
    .map((e) => e.dartify())
    .whereType<num>()
    .where(_isIntegral)
    .map((n) => n.toInt())
    .toList();