fromOverlay static method
InteractiveOverlayImage
fromOverlay(
- OverlayImage overlay, {
- List<
OverlayOptions> options = const [], - double? handleSize,
Implementation
static InteractiveOverlayImage fromOverlay(
OverlayImage overlay, {
List<OverlayOptions> options = const [],
double? handleSize,
}) {
return InteractiveOverlayImage.safe(
key: overlay.key,
image: overlay.imageProvider,
topLeft: overlay.bounds.northWest,
topRight: overlay.bounds.northEast,
bottomRight: overlay.bounds.southEast,
bottomLeft: overlay.bounds.southWest,
alpha: (overlay.opacity * 255).round(),
options: options,
handleSize: handleSize,
);
}