getSharedBool function

Future<bool> getSharedBool({
  1. required String key,
})

Implementation

Future<bool> getSharedBool({required String key}) async {
  bool? value = await getShared<bool>(key: key, defaultValue: false);
  return value;
}