getPreferredSize method

Size getPreferredSize(
  1. SfSliderThemeData themeData, {
  2. bool? isActive,
})

Returns the size based on the values passed to it.

Implementation

Size getPreferredSize(SfSliderThemeData themeData, {bool? isActive}) {
  return Size.fromRadius(isActive != null
      ? (isActive
          ? themeData.activeDividerRadius!
          : themeData.inactiveDividerRadius!)
      : 0);
}