trimToSize method

void trimToSize()

Trims the capacity to the current size.

Implementation

void trimToSize() {
  // In Dart, this is essentially a no-op since List manages its own capacity
  // We could create a new list with exact size, but it's not typically necessary
}