TextAttributeCodec<T extends TextAttribute>.stateful constructor
const
TextAttributeCodec<T extends TextAttribute>.stateful ({})
Create a text attribute codec for a stateful text attribute.
Implementation
const TextAttributeCodec.stateful({
required String typeStr,
required Object? Function(T) encode,
required T Function(Object?) decode,
}) : super.stateful(typeStr: typeStr, encode: encode, decode: decode);