Value method

Pointer<T> Value([
  1. X? value,
  2. String? key
])

Returns the pointer for the slot identified by key (default: 'default'), writing value into it when provided.

Allocates the slot on first use.

Implementation

Pointer<T> Value([X? value, String? key]) {
  final p = At(_slotKey(key));
  if (value != null) literalSetterFunc(p, value);
  return p;
}