SelectableText constructor Null safety

const SelectableText(
  1. String data,
  2. {Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. TextDirection? textDirection,
  7. double? textScaleFactor,
  8. bool showCursor,
  9. bool autofocus,
  10. int? minLines,
  11. int? maxLines,
  12. double cursorWidth,
  13. double? cursorHeight,
  14. Radius? cursorRadius,
  15. Color? cursorColor,
  16. BoxHeightStyle selectionHeightStyle,
  17. BoxWidthStyle selectionWidthStyle,
  18. DragStartBehavior dragStartBehavior,
  19. bool enableInteractiveSelection,
  20. Callback? onTap,
  21. ScrollPhysics? scrollPhysics,
  22. String? semanticsLabel,
  23. TextHeightBehavior? textHeightBehavior,
  24. TextWidthBasis? textWidthBasis}
)

Implementation

const factory SelectableText(final String data,
    {final Key? key,
    final TextStyle? style,
    final StrutStyle? strutStyle,
    final TextAlign? textAlign,
    final TextDirection? textDirection,
    final double? textScaleFactor,
    final bool showCursor,
    final bool autofocus,
    final int? minLines,
    final int? maxLines,
    final double cursorWidth,
    final double? cursorHeight,
    final Radius? cursorRadius,
    final Color? cursorColor,
    final BoxHeightStyle selectionHeightStyle,
    final BoxWidthStyle selectionWidthStyle,
    final DragStartBehavior dragStartBehavior,
    final bool enableInteractiveSelection,
    final Callback? onTap,
    final ScrollPhysics? scrollPhysics,
    final String? semanticsLabel,
    final TextHeightBehavior? textHeightBehavior,
    final TextWidthBasis? textWidthBasis}) = _$SelectableText;