isValueNull method

Future<bool> isValueNull(
  1. SharedPreferencesAsync 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(SharedPreferencesAsync prefs) async {
  return await getValue(prefs) == null;
}