deactivateHighlight method

void deactivateHighlight({
  1. int? highlightId,
})

Deactivates highlighting for a specific highlight collection.

Removes the visual emphasis from a previously activated highlight collection, returning the highlighted elements to their normal rendering. If no highlight ID is specified, deactivates the default highlight collection (ID 0).

To deactivate all highlights at once, use deactivateAllHighlights instead.

Parameters

  • highlightId: The ID of the highlight collection to deactivate. If null, deactivates the default collection (ID 0). Defaults to null

See also:

Implementation

void deactivateHighlight({final int? highlightId}) {
  objectMethod(
    _pointerId,
    'MapView',
    'deactivateHighlight',
    args: (highlightId != null) ? highlightId : <String, dynamic>{},
  );
}