retain method

Retains the targeted snapshot. See WidgetSnapshot.retain.

Implementation

TargetedWidgetSnapshot retain() {
  snapshot.retain();
  return this;
}