BSSelectParams constructor
BSSelectParams(
- String text, {
- double textSizeSmall = -1,
- double textSizeLarge = -1,
- void onTap()?,
- bool autofocus = false,
- Color? cursorColor,
- double? cursorHeight,
- Radius? cursorRadius,
- double cursorWidth = 2.0,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enableInteractiveSelection = true,
- FocusNode? focusNode,
- int? maxLines,
- int? minLines,
- void onSelectionChanged()?,
- ScrollPhysics? scrollPhysics,
- TextSelectionControls? selectionControls,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- String? semanticsLabel,
- bool showCursor = false,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextHeightBehavior? textHeightBehavior,
- double? textScaleFactor,
- TextWidthBasis? textWidthBasis,
- ToolbarOptions? toolbarOptions,
- Key? textKey,
- Color? color,
- Paint? background,
- Color? backgroundColor,
- String? debugLabel,
- TextDecoration? decoration,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - List<
FontFeature> ? fontFeatures, - FontStyle? fontStyle,
- FontWeight? fontWeight,
- Paint? foreground,
- double? height,
- bool inherit = true,
- TextLeadingDistribution? leadingDistribution,
- double? letterSpacing,
- Locale? locale,
- TextOverflow? overflow,
- String? package,
- List<
Shadow> ? shadows, - TextBaseline? textBaseline,
- double? wordSpacing,
- double customBreakpoints(
- BuildContext context,
- String textType, {
- required double large,
- 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,
});