dropRight function

List dropRight(
  1. List list, {
  2. int n = 1,
})

Implementation

List dropRight(List list, {int n = 1}) => list.sublist(0, list.length - n);