ImageMapRegion.fromPoly constructor

ImageMapRegion.fromPoly({
  1. required List<Offset> points,
  2. Color? color,
  3. String? title,
  4. String? link,
})

Implementation

factory ImageMapRegion.fromPoly({
  required List<Offset> points,
  Color? color,
  String? title,
  String? link,
}) {
  return ImageMapRegion(
    shape: ImageMapShape.poly,
    path: Path()..addPolygon(points, true),
    color: color ?? Colors.transparent,
    title: title,
    link: link,
  );
}