Assert each entry of values is num or NumField.
values
static void assertNumValues(List values) { assertNotNullValues(values); for (var v in values) { assert(v is num || v is NumField); } }