PlaceholderDataKeepPrevious<TQueryData> class
final
Option values
The PlaceholderData.keepPrevious variant: while the observer's new key
has no data, it keeps showing what it showed for the key before, flagged
as isPlaceholderData. Equal to every other keepPrevious() of its type,
so options that use it compare equal across rebuilds.
- Inheritance
-
- Object
- PlaceholderData<
TQueryData> - PlaceholderDataKeepPrevious
Constructors
- PlaceholderDataKeepPrevious()
-
Keeps the last non-null data as a placeholder.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
provide(
TQueryData? previousData, Query< TQueryData> ? previousQuery) → ({TQueryData? data, bool hasData}) -
The placeholder, and whether there is one. Same rule as
InitialData.seed:
.value(null)is a placeholder ofnull, while.computereturningnullmeans "none".inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override