saveData method

  1. @override
Future saveData(
  1. String key,
  2. String data
)
override

get stored data from local database key - the key used to store the data data - string version of the data to be stored

Implementation

@override
Future<dynamic> saveData(String key, String data) async =>
    cacheBox.addAll({key: data});