MultiLineString.fromLineStrings constructor Null safety

MultiLineString.fromLineStrings(
  1. {BBox? bbox,
  2. required List<LineString> lineStrings}
)

Implementation

MultiLineString.fromLineStrings(
    {BBox? bbox, required List<LineString> lineStrings})
    : assert(lineStrings.length >= 2),
      super.withType(lineStrings.map((e) => e.coordinates).toList(),
          GeoJSONObjectType.multiLineString,
          bbox: bbox);