ImageMapRegion.fromRect constructor
Implementation
factory ImageMapRegion.fromRect({
required Rect rect,
Color? color,
String? title,
String? link,
}) {
return ImageMapRegion(
shape: ImageMapShape.rect,
path: Path()..addRect(rect),
color: color ?? Colors.transparent,
title: title,
link: link,
);
}