BorshOptionCodec<T> constructor

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

Creates a codec for optional values.

Implementation

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