GeoformView<T, U extends GeoformMarkerDatum> constructor

const GeoformView<T, U extends GeoformMarkerDatum>({
  1. Key? key,
  2. required GeoformFormBuilder<U> formBuilder,
  3. required String title,
  4. required GeoformMarkerBuilder<U>? markerBuilder,
  5. GeoformMarkerDrawerBuilder<U>? markerDrawer,
  6. Future<List<T>>? records,
  7. List<U>? markers,
  8. LatLng? initialPosition,
  9. double? initialZoom,
  10. void onRecordSelected(
    1. T record
    )?,
  11. void onMarkerSelected(
    1. U marker
    )?,
  12. bool registerOnlyWithMarker = false,
  13. bool followUserPositionAtStart = true,
  14. bool registerWithManualSelection = false,
  15. GeoformBottomDisplayBuilder<GeoformMarkerDatum>? bottomInformationBuilder,
  16. GeoformBottomActionsBuilder<GeoformMarkerDatum>? bottomActionsBuilder,
  17. GeoformBottomInterface<GeoformMarkerDatum>? bottomInterface,
  18. void onRegisterPressed(
    1. BuildContext,
    2. GeoformContext
    )?,
  19. void updatePosition(
    1. LatLng?
    )?,
  20. void updateZoom(
    1. double?
    )?,
  21. List<Widget Function(U?)> widgetsOnSelectedMarker = const [],
  22. List<Widget Function(GeoformState, void (U), void (LatLng, double))> additionalActionWidgets = const [],
  23. void updateThenForm()?,
  24. List<FastPolygon> polygonsToDraw = const [],
  25. List<CircleMarker> circlesToDraw = const [],
  26. Widget? customTileProvider,
  27. String urlTemplate = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
  28. bool setManualModeOnAction = false,
})

Implementation

const GeoformView({
  Key? key,
  required this.formBuilder,
  required this.title,
  required this.markerBuilder,
  this.markerDrawer,
  this.records,
  this.markers,
  this.initialPosition,
  this.initialZoom,
  this.onRecordSelected,
  this.onMarkerSelected,
  this.registerOnlyWithMarker = false,
  this.followUserPositionAtStart = true,
  this.registerWithManualSelection = false,
  this.bottomInformationBuilder,
  this.bottomActionsBuilder,
  this.bottomInterface,
  this.onRegisterPressed,
  this.updatePosition,
  this.updateZoom,
  this.widgetsOnSelectedMarker = const [],
  this.additionalActionWidgets = const [],
  this.updateThenForm,
  this.polygonsToDraw = const [],
  this.circlesToDraw = const [],
  this.customTileProvider,
  this.urlTemplate = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
  this.setManualModeOnAction = false,
}) : super(key: key);