preserve static method

void preserve({
  1. required WidgetsBinding widgetsBinding,
})

Implementation

static void preserve({required WidgetsBinding widgetsBinding}) {
  _widgetsBinding = widgetsBinding;
  _widgetsBinding?.deferFirstFrame();
}