PlaceholderDisplayRule enum

A rule enum used to describe how to decide PlaceholderState in PlaceholderText.from.

Inheritance

Constructors

PlaceholderDisplayRule()
const

Values

dataFirst → const PlaceholderDisplayRule

Shows data first, even if currently it is loading, or error text is not empty.

  1. !empty => normal
  2. empty && loading => loading
  3. empty && !loading && error => error
  4. empty && !loading && !error => nothing
loadingFirst → const PlaceholderDisplayRule

Shows loading first, and then shows data, even if currently data is not empty.

  1. loading => loading
  2. !loading && !empty => normal
  3. !loading && empty && error => error
  4. !loading && empty && !error => nothing
errorFirst → const PlaceholderDisplayRule

Shows loading first, and then shows error, even if currently data is not empty.

  1. loading => loading
  2. !loading && error => error
  3. !loading && !error && !empty => normal
  4. !loading && !error && empty => nothing

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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
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.