popFirst method

ModifierBuilder popFirst(
  1. String fieldName
)

The popFirst operator removes the first element of an array.

Implementation

ModifierBuilder popFirst(String fieldName) {
  _updateOperation('\$pop', fieldName, -1);
  return this;
}