resize method

  1. @override
void resize(
  1. double newSize,
  2. double paneSize, {
  3. double? minSize,
  4. double? maxSize,
})
override

Resizes the controller by the given delta amount.

Implementation

@override
void resize(double newSize, double paneSize,
    {double? minSize, double? maxSize}) {
  _flex = newSize.clamp(minSize ?? 0, maxSize ?? double.infinity) / paneSize;
  notifyListeners();
}