normalizedThickness property

double get normalizedThickness

The selected brush's thickness, 0 to 1 of its width range.

Implementation

double get normalizedThickness => _normalizedThickness[currentBrush]!;
set normalizedThickness (double value)

Implementation

set normalizedThickness(double value) {
  final clamped = value.clamp(0.0, 1.0);
  if (_normalizedThickness[currentBrush] == clamped) return;
  _normalizedThickness[currentBrush] = clamped;
  notifyListeners();
}