Created
January 18, 2021 14:02
-
-
Save AmineLAHRIM/971fa2eca346b42e115d6b15c9477523 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Future<bool> cache(Event event) async { | |
// TODO: implement cache | |
final jsonString = event.toJson(); | |
return sharedPreferences.setString( | |
EVENT + event.id.toString(), | |
json.encode(jsonString), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment