trim method

void trim()

Removes trailing retain operation with empty attributes, if present.

Implementation

void trim() {
  if (isNotEmpty) {
    final Operation last = _operations.last;
    if (last.isRetain && last.isPlain) _operations.removeLast();
  }
}