toWidget method

  1. @override
Widget toWidget({
  1. required BuildContext context,
  2. required dynamic state,
})
override

Implementation

@override
Widget toWidget({
  required final BuildContext context,
  required final WidgetState state,
}) {
  if (cache != null) return cache!;
  cache = OpenWGoogleMaps(
    state: state,
    goToUserPosition: state.node.getAttributes[GMDBKeys.goToUserPosition],
    zoomEnabled: state.node.getAttributes[GMDBKeys.zoomEnabled],
    scrollEnabled: state.node.getAttributes[GMDBKeys.scrollEnabled],
    rotateEnabled: state.node.getAttributes[GMDBKeys.rotateEnabled],
    tiltEnabled: state.node.getAttributes[GMDBKeys.tiltEnabled],
    myLocationEnabled: state.node.getAttributes[GMDBKeys.myLocationEnabled],
    myLocationButtonEnabled:
        state.node.getAttributes[GMDBKeys.myLocationButtonEnabled],
    trafficEnabled: state.node.getAttributes[GMDBKeys.trafficEnabled],
    markersJsonGetAttribute:
        state.node.getAttributes[DBKeys.jsonGetAttribute],
    markers: state.node.getAttributes[GMDBKeys.markers],
  );
  return cache!;
}