InteractiveOverlayImage.safe constructor
InteractiveOverlayImage.safe({
- Key? key,
- required ImageProvider<
Object> image, - required LatLng topLeft,
- required LatLng topRight,
- required LatLng bottomRight,
- required LatLng bottomLeft,
- int alpha = 220,
- double? handleSize,
- List<
OverlayOptions> options = const [],
Creates an InteractiveOverlayImage performing checks on options.
Keeps named arguments for convenience, but stores them in corners.
Implementation
factory InteractiveOverlayImage.safe({
Key? key,
required ImageProvider image,
required LatLng topLeft,
required LatLng topRight,
required LatLng bottomRight,
required LatLng bottomLeft,
int alpha = 220,
double? handleSize,
List<OverlayOptions> options = const [],
}) {
_debugAssertNoDuplicateOptionTypes(options);
return InteractiveOverlayImage(
key: key,
image: image,
corners: QuadLatLng(
topLeft: topLeft,
topRight: topRight,
bottomRight: bottomRight,
bottomLeft: bottomLeft,
),
alpha: alpha,
handleSize: handleSize,
options: List<OverlayOptions>.unmodifiable(options),
);
}