captureSnapshot method

  1. @override
  2. @nonVirtual
AnyCompSnapshot<T> captureSnapshot()
override

Implementation

@override
@nonVirtual
AnyCompSnapshot<T> captureSnapshot() {
  final snapshot = createSnapshot();
  snapshot.componentSnapshots = _components
    .map((c) => c.captureSnapshot())
    .toList();
  return snapshot;
}