setPosition method

void setPosition(
  1. double position
)

Implementation

void setPosition(double position) {
  final newPosition = position.clamp(
    config.minChildSize,
    config.effectiveMaxChildSize,
  );
  if ((_sheetPosition - newPosition).abs() > 0.001) {
    _sheetPosition = newPosition;
    _headerPosition = 0.0;
    _headerOpacity = 1.0;
    notifyListeners();
  }
}