functionalStatuses constant

List<Type> const functionalStatuses

A static list containing the types of all functional statuses.

This can be used to easily check if a given status instance belongs to the functional category (Positive, Info, Warning, Negative).

Example

final myStatus = Positive();
final isFunctional = OudsIconStatus.functionalStatuses.contains(myStatus.runtimeType);
// isFunctional will be true

Implementation

static const List<Type> functionalStatuses = [
  Positive,
  Info,
  Warning,
  Negative,
];