DefaultStorage constructor
DefaultStorage({
- FlutterSecureStorage? storage,
Constructor to initialize the DefaultStorage instance.
Parameters:
storage
: Optional parameter to provide a custom instance of FlutterSecureStorage. Defaults to a new instance if no value is provided.
Implementation
DefaultStorage({FlutterSecureStorage? storage})
: _storage = storage ??
const FlutterSecureStorage(
aOptions: AndroidOptions(
encryptedSharedPreferences: true,
));