restartApp<T> static method

Future<void> restartApp<T>(
  1. T configuration
)

Implementation

static Future<void> restartApp<T>(T configuration) async {
  final state = _RestartWidgetState.global.currentContext
      ?.findAncestorStateOfType<_RestartWidgetState<T>>();
  await state?.restartApp(configuration);
}