FFScrollbarTheme constructor

FFScrollbarTheme({
  1. bool? thumbVisible,
  2. bool? trackVisible,
  3. double? thickness,
  4. double? radius,
  5. bool? interactive,
  6. FFColor? thumbColor,
  7. FFColor? thumbHoverColor,
  8. FFColor? thumbDragColor,
  9. FFColor? trackColor,
  10. FFColor? trackHoverColor,
  11. FFColor? trackBorderColor,
  12. FFColor? trackBorderHoverColor,
  13. double? minThumbLength,
  14. double? crossAxisMargin,
  15. double? mainAxisMargin,
  16. bool? horizontalScrollbarAlwaysVisible,
})

Implementation

factory FFScrollbarTheme({
  $core.bool? thumbVisible,
  $core.bool? trackVisible,
  $core.double? thickness,
  $core.double? radius,
  $core.bool? interactive,
  FFColor? thumbColor,
  FFColor? thumbHoverColor,
  FFColor? thumbDragColor,
  FFColor? trackColor,
  FFColor? trackHoverColor,
  FFColor? trackBorderColor,
  FFColor? trackBorderHoverColor,
  $core.double? minThumbLength,
  $core.double? crossAxisMargin,
  $core.double? mainAxisMargin,
  $core.bool? horizontalScrollbarAlwaysVisible,
}) {
  final result = create();
  if (thumbVisible != null) result.thumbVisible = thumbVisible;
  if (trackVisible != null) result.trackVisible = trackVisible;
  if (thickness != null) result.thickness = thickness;
  if (radius != null) result.radius = radius;
  if (interactive != null) result.interactive = interactive;
  if (thumbColor != null) result.thumbColor = thumbColor;
  if (thumbHoverColor != null) result.thumbHoverColor = thumbHoverColor;
  if (thumbDragColor != null) result.thumbDragColor = thumbDragColor;
  if (trackColor != null) result.trackColor = trackColor;
  if (trackHoverColor != null) result.trackHoverColor = trackHoverColor;
  if (trackBorderColor != null) result.trackBorderColor = trackBorderColor;
  if (trackBorderHoverColor != null)
    result.trackBorderHoverColor = trackBorderHoverColor;
  if (minThumbLength != null) result.minThumbLength = minThumbLength;
  if (crossAxisMargin != null) result.crossAxisMargin = crossAxisMargin;
  if (mainAxisMargin != null) result.mainAxisMargin = mainAxisMargin;
  if (horizontalScrollbarAlwaysVisible != null)
    result.horizontalScrollbarAlwaysVisible =
        horizontalScrollbarAlwaysVisible;
  return result;
}