MultiPoint.read constructor

MultiPoint.read(
  1. int? srid,
  2. ByteDataReader reader,
  3. bool hasZ,
  4. bool hasM,
)

Implementation

factory MultiPoint.read(
    int? srid, ByteDataReader reader, bool hasZ, bool hasM) {
  final length = reader.readUint32();
  return MultiPoint(
    srid,
    List.generate(length, (i) => Point.read(srid, reader, hasZ, hasM)),
    hasZ,
    hasM,
  );
}