ImageMapRegion.fromPoly constructor
ImageMapRegion.fromPoly({})
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,
);
}