FFStaticMap constructor

FFStaticMap({
  1. FFLatLng? legacyLocation,
  2. int? legacyZoom,
  3. FFStaticMap_FFStaticMapStyle? style,
  4. int? legacyTilt,
  5. int? legacyRotation,
  6. FFImage? image,
  7. String? legacyApiKey,
  8. FFColor? legacyMarkerColor,
  9. String? legacyMarkerUrl,
  10. FFLatLngValue? locationValue,
  11. FFIntegerValue? zoomValue,
  12. FFIntegerValue? tiltValue,
  13. FFIntegerValue? rotationValue,
  14. FFStringValue? apiKeyValue,
  15. FFColorValue? markerColorValue,
  16. FFStringValue? markerUrlValue,
})

Implementation

factory FFStaticMap({
  FFLatLng? legacyLocation,
  $core.int? legacyZoom,
  FFStaticMap_FFStaticMapStyle? style,
  $core.int? legacyTilt,
  $core.int? legacyRotation,
  FFImage? image,
  $core.String? legacyApiKey,
  FFColor? legacyMarkerColor,
  $core.String? legacyMarkerUrl,
  FFLatLngValue? locationValue,
  FFIntegerValue? zoomValue,
  FFIntegerValue? tiltValue,
  FFIntegerValue? rotationValue,
  FFStringValue? apiKeyValue,
  FFColorValue? markerColorValue,
  FFStringValue? markerUrlValue,
}) {
  final result = create();
  if (legacyLocation != null) result.legacyLocation = legacyLocation;
  if (legacyZoom != null) result.legacyZoom = legacyZoom;
  if (style != null) result.style = style;
  if (legacyTilt != null) result.legacyTilt = legacyTilt;
  if (legacyRotation != null) result.legacyRotation = legacyRotation;
  if (image != null) result.image = image;
  if (legacyApiKey != null) result.legacyApiKey = legacyApiKey;
  if (legacyMarkerColor != null) result.legacyMarkerColor = legacyMarkerColor;
  if (legacyMarkerUrl != null) result.legacyMarkerUrl = legacyMarkerUrl;
  if (locationValue != null) result.locationValue = locationValue;
  if (zoomValue != null) result.zoomValue = zoomValue;
  if (tiltValue != null) result.tiltValue = tiltValue;
  if (rotationValue != null) result.rotationValue = rotationValue;
  if (apiKeyValue != null) result.apiKeyValue = apiKeyValue;
  if (markerColorValue != null) result.markerColorValue = markerColorValue;
  if (markerUrlValue != null) result.markerUrlValue = markerUrlValue;
  return result;
}