BSSelectParams constructor

BSSelectParams(
  1. String text, {
  2. double textSizeSmall = -1,
  3. double textSizeLarge = -1,
  4. void onTap()?,
  5. bool autofocus = false,
  6. Color? cursorColor,
  7. double? cursorHeight,
  8. Radius? cursorRadius,
  9. double cursorWidth = 2.0,
  10. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  11. bool enableInteractiveSelection = true,
  12. FocusNode? focusNode,
  13. int? maxLines,
  14. int? minLines,
  15. void onSelectionChanged(
    1. TextSelection,
    2. SelectionChangedCause?
    )?,
  16. ScrollPhysics? scrollPhysics,
  17. TextSelectionControls? selectionControls,
  18. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  19. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  20. String? semanticsLabel,
  21. bool showCursor = false,
  22. StrutStyle? strutStyle,
  23. TextAlign? textAlign,
  24. TextDirection? textDirection,
  25. TextHeightBehavior? textHeightBehavior,
  26. double? textScaleFactor,
  27. TextWidthBasis? textWidthBasis,
  28. ToolbarOptions? toolbarOptions,
  29. Key? textKey,
  30. Color? color,
  31. Paint? background,
  32. Color? backgroundColor,
  33. String? debugLabel,
  34. TextDecoration? decoration,
  35. Color? decorationColor,
  36. TextDecorationStyle? decorationStyle,
  37. double? decorationThickness,
  38. String? fontFamily,
  39. List<String>? fontFamilyFallback,
  40. List<FontFeature>? fontFeatures,
  41. FontStyle? fontStyle,
  42. FontWeight? fontWeight,
  43. Paint? foreground,
  44. double? height,
  45. bool inherit = true,
  46. TextLeadingDistribution? leadingDistribution,
  47. double? letterSpacing,
  48. Locale? locale,
  49. TextOverflow? overflow,
  50. String? package,
  51. List<Shadow>? shadows,
  52. TextBaseline? textBaseline,
  53. double? wordSpacing,
  54. double customBreakpoints(
    1. BuildContext context,
    2. String textType, {
    3. required double large,
    4. required double small,
    })?,
})

Implementation

BSSelectParams(
  this.text, {
  this.textSizeSmall = -1,
  this.textSizeLarge = -1,
  this.onTap,
  this.autofocus = false,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth = 2.0,
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.focusNode,
  this.maxLines,
  this.minLines,
  this.onSelectionChanged,
  this.scrollPhysics,
  this.selectionControls,
  this.selectionHeightStyle = BoxHeightStyle.tight,
  this.selectionWidthStyle = BoxWidthStyle.tight,
  this.semanticsLabel,
  this.showCursor = false,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.textHeightBehavior,
  this.textScaleFactor,
  this.textWidthBasis,
  this.toolbarOptions,
  this.textKey,
  this.color,
  this.background,
  this.backgroundColor,
  this.debugLabel,
  this.decoration,
  this.decorationColor,
  this.decorationStyle,
  this.decorationThickness,
  this.fontFamily,
  this.fontFamilyFallback,
  this.fontFeatures,
  this.fontStyle,
  this.fontWeight,
  this.foreground,
  this.height,
  this.inherit = true,
  this.leadingDistribution,
  this.letterSpacing,
  this.locale,
  this.overflow,
  this.package,
  this.shadows,
  this.textBaseline,
  this.wordSpacing,
  this.customBreakpoints,
});