PlaceholderDisplayRule enum
A rule enum used to describe how to decide PlaceholderState in PlaceholderText.from.
Constructors
- PlaceholderDisplayRule()
-
const
Values
- dataFirst → const PlaceholderDisplayRule
-
Shows data first, even if currently it is loading, or error text is not empty.
- !empty => normal
- empty && loading => loading
- empty && !loading && error => error
- empty && !loading && !error => nothing
- loadingFirst → const PlaceholderDisplayRule
-
Shows loading first, and then shows data, even if currently data is not empty.
- loading => loading
- !loading && !empty => normal
- !loading && empty && error => error
- !loading && empty && !error => nothing
- errorFirst → const PlaceholderDisplayRule
-
Shows loading first, and then shows error, even if currently data is not empty.
- loading => loading
- !loading && error => error
- !loading && !error && !empty => normal
- !loading && !error && empty => nothing
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PlaceholderDisplayRule> - A constant List of the values in this enum, in order of their declaration.