shouldKeepAlive static method

bool shouldKeepAlive(
  1. BuildContext context
)

Implementation

static bool shouldKeepAlive(BuildContext context) {
  final KeepQuestionWidgetAlive? result = context
      .dependOnInheritedWidgetOfExactType<KeepQuestionWidgetAlive>();

  return result?.keepWidgetAlive ?? false;
}