Value method

P Value([
  1. num? value,
  2. String? key
])
inherited

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

Allocates the slot on first use.

Implementation

P Value([X? value, String? key]) {
  final p = At(slotKey(key));
  if (value != null) literalSetterFunc(p, value);
  return p;
}