encodeField static method

List<int> encodeField(
  1. Object value,
  2. ProtoFieldConfig config, {
  3. ProtoSyntax syntax = ProtoSyntax.v2,
})

Implementation

static List<int> encodeField(
  Object value,
  ProtoFieldConfig config, {
  ProtoSyntax syntax = ProtoSyntax.v2,
}) {
  return _encodeField(value: value, config: config, syntax: syntax) ?? [];
}