retain method

WidgetSnapshot retain()

Increases the retain count of this snapshot. This allows using snapshot in multiple places (i.e. lift & drag having same image).

Implementation

WidgetSnapshot retain() {
  _retainCount++;
  return this;
}