clear method

  1. @override
Future<bool> clear()
override

Clear, or in other words, remove, the value. Effectively sets the value to a null value. After removing a value, the notifier will emit defaultValue once.

Returns true if the clear operation was successful, otherwise returns false.

Implementation

@override
Future<bool> clear() => _preference!.clear();