take method

void take(
  1. VmapLabelWork other
)

Adds other to this and starts other again.

Implementation

void take(VmapLabelWork other) {
  rasterized += other.rasterized;
  layoutMicros += other.layoutMicros;
  imageMicros += other.imageMicros;
  images += other.images;
  resized += other.resized;
  evicted += other.evicted;
  statesWalked += other.statesWalked;
  other
    ..rasterized = 0
    ..layoutMicros = 0
    ..imageMicros = 0
    ..images = 0
    ..resized = 0
    ..evicted = 0
    ..statesWalked = 0;
}