SharedPreferences constructor

SharedPreferences(
  1. String _name,
  2. int _mode, {
  3. bool prefetch = false,
  4. dynamic useDeviceProtectedStorage = false,
})

Implementation

SharedPreferences(this._name, this._mode,
    {this.prefetch = false, this.useDeviceProtectedStorage = false}) {
  if (prefetch) {
    _init();
  }
}