TestMaps constructor

TestMaps({
  1. PbMap<int, TestIntIntMap>? mInt32,
  2. PbMap<Int64, TestIntIntMap>? mInt64,
  3. PbMap<int, TestIntIntMap>? mUint32,
  4. PbMap<Int64, TestIntIntMap>? mUint64,
  5. PbMap<int, TestIntIntMap>? mSint32,
  6. PbMap<Int64, TestIntIntMap>? mSint64,
  7. PbMap<int, TestIntIntMap>? mFixed32,
  8. PbMap<Int64, TestIntIntMap>? mFixed64,
  9. PbMap<int, TestIntIntMap>? mSfixed32,
  10. PbMap<Int64, TestIntIntMap>? mSfixed64,
  11. PbMap<bool, TestIntIntMap>? mBool,
  12. PbMap<String, TestIntIntMap>? mString,
})

Implementation

factory TestMaps({
  $pb.PbMap<$core.int, TestIntIntMap>? mInt32,
  $pb.PbMap<$fixnum.Int64, TestIntIntMap>? mInt64,
  $pb.PbMap<$core.int, TestIntIntMap>? mUint32,
  $pb.PbMap<$fixnum.Int64, TestIntIntMap>? mUint64,
  $pb.PbMap<$core.int, TestIntIntMap>? mSint32,
  $pb.PbMap<$fixnum.Int64, TestIntIntMap>? mSint64,
  $pb.PbMap<$core.int, TestIntIntMap>? mFixed32,
  $pb.PbMap<$fixnum.Int64, TestIntIntMap>? mFixed64,
  $pb.PbMap<$core.int, TestIntIntMap>? mSfixed32,
  $pb.PbMap<$fixnum.Int64, TestIntIntMap>? mSfixed64,
  $pb.PbMap<$core.bool, TestIntIntMap>? mBool,
  $pb.PbMap<$core.String, TestIntIntMap>? mString,
}) {
  final $result = create();
  if (mInt32 != null) {
    $result.mInt32.addAll(mInt32);
  }
  if (mInt64 != null) {
    $result.mInt64.addAll(mInt64);
  }
  if (mUint32 != null) {
    $result.mUint32.addAll(mUint32);
  }
  if (mUint64 != null) {
    $result.mUint64.addAll(mUint64);
  }
  if (mSint32 != null) {
    $result.mSint32.addAll(mSint32);
  }
  if (mSint64 != null) {
    $result.mSint64.addAll(mSint64);
  }
  if (mFixed32 != null) {
    $result.mFixed32.addAll(mFixed32);
  }
  if (mFixed64 != null) {
    $result.mFixed64.addAll(mFixed64);
  }
  if (mSfixed32 != null) {
    $result.mSfixed32.addAll(mSfixed32);
  }
  if (mSfixed64 != null) {
    $result.mSfixed64.addAll(mSfixed64);
  }
  if (mBool != null) {
    $result.mBool.addAll(mBool);
  }
  if (mString != null) {
    $result.mString.addAll(mString);
  }
  return $result;
}