LineModifierCodec<T extends LineModifier>.stateful constructor

const LineModifierCodec<T extends LineModifier>.stateful({
  1. required String typeStr,
  2. required Object? encode(
    1. T
    ),
  3. required T decode(
    1. Object?
    ),
})

Create a line modifier codec for a stateful line modifier.

Implementation

const LineModifierCodec.stateful({
  required String typeStr,
  required Object? Function(T) encode,
  required T Function(Object?) decode,
}) : super.stateful(typeStr: typeStr, encode: encode, decode: decode);