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 = const EdgeInsets.symmetric(),
  11. LineNumberStyle lineNumberStyle = const LineNumberStyle(),
  12. bool? enabled,
  13. Color? cursorColor,
  14. TextSelectionThemeData? textSelectionTheme,
  15. TextSpan lineNumberBuilder(
    1. int,
    2. TextStyle?
    )?,
  16. FocusNode? focusNode,
})

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 = const EdgeInsets.symmetric(),
  this.lineNumberStyle = const LineNumberStyle(),
  this.enabled,
  this.cursorColor,
  this.textSelectionTheme,
  this.lineNumberBuilder,
  this.focusNode,
}) : super(key: key);