updateHeightModel method

void updateHeightModel(
  1. ToggleSheetHeightModel? model
)

Updates the current height model of the toggle sheet.

This method sets the height model to the provided model. If model is null, it may reset or clear the current height configuration, depending on the implementation.

model - The new ToggleSheetHeightModel to apply, or null to reset.

Implementation

void updateHeightModel(ToggleSheetHeightModel? model) {
  _extent.heightModel = model;

  _isChangingHeightModel = true;
  Future(notifyListeners);
}