BorshOptionEncoder<T> constructor

const BorshOptionEncoder<T>(
  1. BorshCodec<T> subtype,
  2. BorshOptionType? type
)

Creates an encoder for optional values.

Implementation

const BorshOptionEncoder(super.subtype, super.type);