dynamic removeLast(String path)

Removes the last from the list at path. Returns the removed element.

Source

dynamic removeLast(String path) {
  return convertToDart(jsElement.callMethod('pop', [path]));
}