TestArenaMap constructor

TestArenaMap({
  1. PbMap<int, int>? mapInt32Int32,
  2. PbMap<Int64, Int64>? mapInt64Int64,
  3. PbMap<int, int>? mapUint32Uint32,
  4. PbMap<Int64, Int64>? mapUint64Uint64,
  5. PbMap<int, int>? mapSint32Sint32,
  6. PbMap<Int64, Int64>? mapSint64Sint64,
  7. PbMap<int, int>? mapFixed32Fixed32,
  8. PbMap<Int64, Int64>? mapFixed64Fixed64,
  9. PbMap<int, int>? mapSfixed32Sfixed32,
  10. PbMap<Int64, Int64>? mapSfixed64Sfixed64,
  11. PbMap<int, double>? mapInt32Float,
  12. PbMap<int, double>? mapInt32Double,
  13. PbMap<bool, bool>? mapBoolBool,
  14. PbMap<String, String>? mapStringString,
  15. PbMap<int, List<int>>? mapInt32Bytes,
  16. PbMap<int, MapEnum>? mapInt32Enum,
  17. PbMap<int, ForeignMessage>? mapInt32ForeignMessage,
})

Implementation

factory TestArenaMap({
  $pb.PbMap<$core.int, $core.int>? mapInt32Int32,
  $pb.PbMap<$fixnum.Int64, $fixnum.Int64>? mapInt64Int64,
  $pb.PbMap<$core.int, $core.int>? mapUint32Uint32,
  $pb.PbMap<$fixnum.Int64, $fixnum.Int64>? mapUint64Uint64,
  $pb.PbMap<$core.int, $core.int>? mapSint32Sint32,
  $pb.PbMap<$fixnum.Int64, $fixnum.Int64>? mapSint64Sint64,
  $pb.PbMap<$core.int, $core.int>? mapFixed32Fixed32,
  $pb.PbMap<$fixnum.Int64, $fixnum.Int64>? mapFixed64Fixed64,
  $pb.PbMap<$core.int, $core.int>? mapSfixed32Sfixed32,
  $pb.PbMap<$fixnum.Int64, $fixnum.Int64>? mapSfixed64Sfixed64,
  $pb.PbMap<$core.int, $core.double>? mapInt32Float,
  $pb.PbMap<$core.int, $core.double>? mapInt32Double,
  $pb.PbMap<$core.bool, $core.bool>? mapBoolBool,
  $pb.PbMap<$core.String, $core.String>? mapStringString,
  $pb.PbMap<$core.int, $core.List<$core.int>>? mapInt32Bytes,
  $pb.PbMap<$core.int, MapEnum>? mapInt32Enum,
  $pb.PbMap<$core.int, $21.ForeignMessage>? mapInt32ForeignMessage,
}) {
  final $result = create();
  if (mapInt32Int32 != null) {
    $result.mapInt32Int32.addAll(mapInt32Int32);
  }
  if (mapInt64Int64 != null) {
    $result.mapInt64Int64.addAll(mapInt64Int64);
  }
  if (mapUint32Uint32 != null) {
    $result.mapUint32Uint32.addAll(mapUint32Uint32);
  }
  if (mapUint64Uint64 != null) {
    $result.mapUint64Uint64.addAll(mapUint64Uint64);
  }
  if (mapSint32Sint32 != null) {
    $result.mapSint32Sint32.addAll(mapSint32Sint32);
  }
  if (mapSint64Sint64 != null) {
    $result.mapSint64Sint64.addAll(mapSint64Sint64);
  }
  if (mapFixed32Fixed32 != null) {
    $result.mapFixed32Fixed32.addAll(mapFixed32Fixed32);
  }
  if (mapFixed64Fixed64 != null) {
    $result.mapFixed64Fixed64.addAll(mapFixed64Fixed64);
  }
  if (mapSfixed32Sfixed32 != null) {
    $result.mapSfixed32Sfixed32.addAll(mapSfixed32Sfixed32);
  }
  if (mapSfixed64Sfixed64 != null) {
    $result.mapSfixed64Sfixed64.addAll(mapSfixed64Sfixed64);
  }
  if (mapInt32Float != null) {
    $result.mapInt32Float.addAll(mapInt32Float);
  }
  if (mapInt32Double != null) {
    $result.mapInt32Double.addAll(mapInt32Double);
  }
  if (mapBoolBool != null) {
    $result.mapBoolBool.addAll(mapBoolBool);
  }
  if (mapStringString != null) {
    $result.mapStringString.addAll(mapStringString);
  }
  if (mapInt32Bytes != null) {
    $result.mapInt32Bytes.addAll(mapInt32Bytes);
  }
  if (mapInt32Enum != null) {
    $result.mapInt32Enum.addAll(mapInt32Enum);
  }
  if (mapInt32ForeignMessage != null) {
    $result.mapInt32ForeignMessage.addAll(mapInt32ForeignMessage);
  }
  return $result;
}