CodeField constructor

const CodeField({
  1. Key? key,
  2. required CodeController controller,
  3. int? minLines,
  4. int? maxLines,
  5. bool expands = false,
  6. bool wrap = false,
  7. Color? background,
  8. Decoration? decoration,
  9. TextStyle? textStyle,
  10. EdgeInsets padding = EdgeInsets.zero,
  11. LineNumberStyle lineNumberStyle = const LineNumberStyle(),
  12. bool? enabled,
  13. void onTap()?,
  14. bool readOnly = false,
  15. Color? cursorColor,
  16. TextSelectionThemeData? textSelectionTheme,
  17. TextSpan lineNumberBuilder(
    1. int,
    2. TextStyle?
    )?,
  18. FocusNode? focusNode,
  19. void onChanged(
    1. String
    )?,
  20. bool isDense = false,
  21. SmartQuotesType? smartQuotesType,
  22. TextInputType? keyboardType,
  23. bool lineNumbers = true,
  24. bool horizontalScroll = true,
  25. TextSelectionControls? selectionControls,
})

Implementation

const CodeField({
  Key? key,
  required this.controller,
  this.minLines,
  this.maxLines,
  this.expands = false,
  this.wrap = false,
  this.background,
  this.decoration,
  this.textStyle,
  this.padding = EdgeInsets.zero,
  this.lineNumberStyle = const LineNumberStyle(),
  this.enabled,
  this.onTap,
  this.readOnly = false,
  this.cursorColor,
  this.textSelectionTheme,
  this.lineNumberBuilder,
  this.focusNode,
  this.onChanged,
  this.isDense = false,
  this.smartQuotesType,
  this.keyboardType,
  this.lineNumbers = true,
  this.horizontalScroll = true,
  this.selectionControls,
}) : super(key: key);