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 = const EdgeInsets.symmetric(),
- LineNumberStyle lineNumberStyle = const LineNumberStyle(),
- bool? enabled,
- Color? cursorColor,
- TextSelectionThemeData? textSelectionTheme,
- TextSpan lineNumberBuilder()?,
- 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);