INNER CODE UNIT · Dart

_AppRestartScopeState

hacan359/tonkatsu_box · lib/main.dart:102

class _AppRestartScopeState extends State<AppRestartScope> {
  Key _key = UniqueKey();

  Future<void> _restart() async {
    await _loadAppState();
    if (mounted) {
      setState(() => _key = UniqueKey());
    }
  }

  @override
  Widget build(BuildContext context) {
    return ProviderScope(
      key: _key,
      overrides: <Override>[
        sharedPreferencesProvider.overrideWithValue(_prefs),
        apiKeysProvider.overrideWithValue(_apiKeys),
        collectionsHeroDirProvider.overrideWithValue(_heroDir),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…