writeGeneralCodec method

  1. @override
void writeGeneralCodec(
  1. GObjectOptions generatorOptions,
  2. Root root,
  3. Indent indent, {
  4. required String dartPackageName,
})
override

Writes the custom codec to indent.

Implementation

@override
void writeGeneralCodec(
  GObjectOptions generatorOptions,
  Root root,
  Indent indent, {
  required String dartPackageName,
}) {
  final String module = _getModule(generatorOptions, dartPackageName);
  indent.newln();
  _writeDeclareFinalType(indent, module, _codecBaseName,
      parentClassName: _standardCodecName);
}