isEmpty property

  1. @override
bool? isEmpty
override

If the internal NotifierBase is an EmptyValueNotifier, you can check if it is empty.

Trying to read isEmpty, when the internal NotifierBase is not an EmptyValueNotifier returns null.

Implementation

@override
bool? get isEmpty {
  if (_notifier is! EmptyValueNotifier<V>) return null;
  return (_notifier as EmptyValueNotifier<V>).isEmpty;
}