isValueNull method

Future<bool> isValueNull(
  1. SharedPreferences prefs
)

Checks if the current value is null.

Returns a Future<bool> that completes with true if the value is null.

Implementation

Future<bool> isValueNull(SharedPreferences prefs) async {
  return await getValue(prefs) == null;
}