Field<V> class
abstract
A Field used to add a key-value pair to a logger's context.
Constructors
- Field({required String name, required V value, required FieldKind kind})
-
Creates a new Field with
name
andvalue
.constfactory -
Field.lazy({required String name, required ValueProducer<
V> producer, required FieldKind kind}) -
Creates a new Field with value that is evaluated on access.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → FieldKind
-
Kind of field's value, used to determine
Field.value
type without runtime lookups.no setter - name → String
-
Name of this field (a key).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → V
-
Value of this field.
no setter
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