trim method

void trim()

Removes trailing retain operation with empty attributes, if present.

Implementation

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