encode method

Object? encode(
  1. T value
)

Encode a component's state.

Implementation

Object? encode(T value) {
  return _encode?.call(value);
}