This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
path_provider/path_provider_windows/lib/src
shared_preferences_linux/lib
shared_preferences_windows/lib Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class VersionInfoQuerier {
4949class PathProviderWindows extends PathProviderPlatform {
5050 /// Registers the Windows implementation.
5151 static void registerWith () {
52- // TODO(stuartmorgan): Fill this up.
52+ PathProviderPlatform .instance = PathProviderWindows ();
5353 }
5454
5555 /// The object to use for performing VerQueryValue calls.
Original file line number Diff line number Diff line change @@ -16,12 +16,9 @@ import 'package:shared_preferences_platform_interface/shared_preferences_platfor
1616///
1717/// This class implements the `package:shared_preferences` functionality for Linux.
1818class SharedPreferencesLinux extends SharedPreferencesStorePlatform {
19- /// The default instance of [SharedPreferencesLinux] to use.
20- static SharedPreferencesLinux instance = SharedPreferencesLinux ();
21-
2219 /// Registers the Linux implementation.
2320 static void registerWith () {
24- // TODO(stuartmorgan): Fill this up.
21+ SharedPreferencesStorePlatform .instance = SharedPreferencesLinux ();
2522 }
2623
2724 /// Local copy of preferences
Original file line number Diff line number Diff line change @@ -15,12 +15,9 @@ import 'package:path_provider_windows/path_provider_windows.dart';
1515///
1616/// This class implements the `package:shared_preferences` functionality for Windows.
1717class SharedPreferencesWindows extends SharedPreferencesStorePlatform {
18- /// The default instance of [SharedPreferencesWindows] to use.
19- static SharedPreferencesWindows instance = SharedPreferencesWindows ();
20-
2118 /// Registers the Windows implementation.
2219 static void registerWith () {
23- // TODO(stuartmorgan): Fill this up.
20+ SharedPreferencesStorePlatform .instance = SharedPreferencesWindows ();
2421 }
2522
2623 /// File system used to store to disk. Exposed for testing only.
You can’t perform that action at this time.
0 commit comments