whereNumbers property

List<num> get whereNumbers

Returns a list containing only the numeric values from the original list.

Example:

final numericValues = list.whereNumbers;

Implementation

List<num> get whereNumbers =>
    where((T element) => element is num).cast<num>().toList();