hasPreviousValue property

  1. @override
bool get hasPreviousValue
override

Indicates if there is a previous value. It is especially helpful if T is nullable.

Implementation

@override
bool get hasPreviousValue {
  if (!trackPreviousValue) return false;
  // cause observation
  value;
  return _hasPreviousValue;
}