Severity enum
Severity levels as a bitmask. Possible values are
debug
, info
, warning
, error
.
// example
int severity = Severity.warning.value | Severity.error.value;
// test for bitmask inclusion
bool isError = Severity.hasLevel(_severity, Severity.debug);
Values
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
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
Static Properties
- all → int
-
Returns the value of all levels, i.e.
Severity.debug.value | Severity.info.value |
Severity.warning.value | Severity.error.value
no setter
- allExceptDebug → int
-
Returns the value of all levels except for debug, i.e.
Severity.info.value | Severity.warning.value | Severity.error.value
no setter