clear method
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() {
_storedValue = null;
_updateState();
return Future.value(true);
}