CodeField constructor
const
CodeField({
- Key? key,
- required CodeController controller,
- int? minLines,
- int? maxLines,
- bool expands = false,
- bool wrap = false,
- Color? background,
- Decoration? decoration,
- TextStyle? textStyle,
- EdgeInsets padding = EdgeInsets.zero,
- LineNumberStyle lineNumberStyle = const LineNumberStyle(),
- bool? enabled,
- void onTap()?,
- bool readOnly = false,
- Color? cursorColor,
- TextSelectionThemeData? textSelectionTheme,
- TextSpan lineNumberBuilder()?,
- FocusNode? focusNode,
- void onChanged()?,
- bool isDense = false,
- SmartQuotesType? smartQuotesType,
- TextInputType? keyboardType,
- bool lineNumbers = true,
- bool horizontalScroll = true,
- 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);