onepref 0.0.2 onepref: ^0.0.2 copied to clipboard
A simplified version of SharedPreferences.
This package is endorsed, which means you can simply use shared_preferences normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.
Features #
EasyPref offers the same functionality shared_preferences package offers, so it in this package you will easily access the shared_preferences methods everywhere in your app.
Getting started #
flutter pub add OnePref
Import `/OnePref.dart`
Call this 'OnePref.Init();' once in your opening screen such splash screen, to activate the shared_preferences.
Usage #
To Write
OnePref.setString("key","value here");
Get the Value
const value = OnePref.getString("key");
Additional information #
init push