LineCountIndicatorDecoration class
The decoration which will be applied to LineCountIndicator
Use the same font-family & font-size you would use in the TextField.
Constructors
- LineCountIndicatorDecoration({WidthBuilderCallback? widthBuilder, TextStyle? textStyle, Color textColor = Colors.white, double? lineHeight, Color? backgroundColor, ScrollPhysics scrollPhysics = const ClampingScrollPhysics(), BorderSide? rightBorderSide, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding})
- The decoration which will be applied to LineCountIndicator
Properties
- alignment → AlignmentGeometry?
-
Alignment of numbers in the Line Indicator Column
final
- backgroundColor → Color?
-
Line background color
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineHeight → double?
-
Explicitly specify a line height for each line indicator.
final
- padding → EdgeInsetsGeometry?
-
The padding for the line indicator column.
final
- rightBorderSide → BorderSide?
-
Decoration for right border side
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics
-
Determines the physics of a this widget.
defaults to ClampingScrollPhysics
final
- textColor → Color
-
Text color
final
- textStyle → TextStyle?
-
Text style of line indicator
final
- widthBuilder → WidthBuilderCallback?
-
Calculate the width based on the total number of lines & digits of last line number.
final
Methods
-
merge(
LineCountIndicatorDecoration? other) → LineCountIndicatorDecoration - Merge this with other
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited