KeyPlacement enum

Where the log's key (subsystem tag) is rendered.

Inheritance
Available extensions

Values

inline → const KeyPlacement

Rendered in the message body as @MyKey. This is the 0.2.x behaviour.

developerLogName → const KeyPlacement

Passed to dart:developer's log(name:), so the IDE renders it in its own dimmed […] gutter — replacing the constant [InlineLogger] prefix instead of following it.

This is the cheapest possible way to show the tag: the gutter is drawn by the console host, so it costs zero columns of the package's own budget. It also gives DevTools per-subsystem filtering (k:VideoProgressRepo).

Records with no key fall back to LoggerConfig.developerLogName.

Note that under this placement ConsoleFormatter.format no longer contains the key — the host supplies it. formatPlain always includes it, since a plain-text sink has no gutter to render into.

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

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<KeyPlacement>
A constant List of the values in this enum, in order of their declaration.