Buckets:
| import 'package:flutter/material.dart'; | |
| /// A service that stores and retrieves user settings. | |
| /// | |
| /// By default, this class does not persist user settings. If you'd like to | |
| /// persist the user settings locally, use the shared_preferences package. If | |
| /// you'd like to store settings on a web server, use the http package. | |
| class SettingsService { | |
| /// Loads the User's preferred ThemeMode from local or remote storage. | |
| Future<ThemeMode> themeMode() async => ThemeMode.system; | |
| /// Persists the user's preferred ThemeMode to local or remote storage. | |
| Future<void> updateThemeMode(ThemeMode theme) async { | |
| // Use the shared_preferences package to persist settings locally or the | |
| // http package to persist settings over the network. | |
| } | |
| } | |
Xet Storage Details
- Size:
- 754 Bytes
- Xet hash:
- fd0272b02bb24a573ce28387b13a41d4bf81f1443c51af7c44c5a41c127a504f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.