shouldUseFastSnapshotFirstFrame function

  1. @visibleForTesting
bool shouldUseFastSnapshotFirstFrame({
  1. required bool fromRenderHistory,
  2. required bool didResetAfterInitialHistorySync,
  3. required bool hasBoardController,
  4. required bool hasSnapshotData,
})

Implementation

@visibleForTesting
bool shouldUseFastSnapshotFirstFrame({
  required bool fromRenderHistory,
  required bool didResetAfterInitialHistorySync,
  required bool hasBoardController,
  required bool hasSnapshotData,
}) {
  return _kFastSnapshotFirstFrameEnabled &&
      !fromRenderHistory &&
      !didResetAfterInitialHistorySync &&
      hasBoardController &&
      hasSnapshotData;
}