slc(List<int> v, int? s, int? e) { if (s == null || s < 0){ s = 0; } if (e == null || e > v.length){ e = v.length; } // can't use .constructor in case user-supplied return u8.fromList(v.sublist(s, e)); }