getStringValue method

  1. @override
Future<String?> getStringValue(
  1. String key, {
  2. bool coldFetch = false,
  3. bool fallbackWithOfflineValue = false,
})
override

Implementation

@override
Future<String?> getStringValue(
  String key, {
  bool coldFetch = false,
  bool fallbackWithOfflineValue = false,
}) async {
  try {
    return await methodChannel.invokeMethod<String>("getStringValue", {
      'key': key,
      'coldFetch': coldFetch,
      'fallbackWithOfflineValue': fallbackWithOfflineValue
    });
  } on PlatformException catch (e, s) {
    print(s);
    return null;
  }
}