UnderlineDecoration class
The object determine the underline color etc.
- Inheritance
-
- Object
- PinDecoration
- UnderlineDecoration
- Implemented types
Constructors
-
UnderlineDecoration.new({TextStyle? textStyle, ObscureStyle? obscureStyle, String? errorText, TextStyle? errorTextStyle, String? hintText, TextStyle? hintTextStyle, double gapSpace = 16.0, List<
double> ? gapSpaces, required ColorBuilder colorBuilder, double lineHeight = 2.0, StrokeCap? lineStrokeCap, ColorBuilder? bgColorBuilder})
Properties
- baseBgColorBuilder → ColorBuilder?
-
finalinherited
- bgColorBuilder → ColorBuilder?
-
The background color of index character.
final
- colorBuilder → ColorBuilder
-
The color of the underline of index character.
final
- errorText → String?
-
The error text that will be displayed if any error
finalinherited
- errorTextStyle → TextStyle?
-
The style of error text.
finalinherited
- gapSpace → double
-
The space between text and underline.
final
-
gapSpaces
→ List<
double> ? -
The gaps between every two adjacent box, higher priority than gapSpace.
final
- getGapWidth → double
-
The adjacent box gap.
no setteroverride
-
getGapWidthList
→ List<
double> ? -
The gaps between every two adjacent box, higher priority than gapSpace.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- hintText → String?
-
finalinherited
- hintTextStyle → TextStyle?
-
finalinherited
- lineHeight → double
-
The height of the underline.
final
- lineStrokeCap → StrokeCap?
-
The stroke cap of the underline.
final
- obscureStyle → ObscureStyle?
-
The style of obscure text.
finalinherited
- pinEntryType → PinEntryType
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
The style of painting text.
finalinherited
Methods
-
copyWith(
{TextStyle? textStyle, ObscureStyle? obscureStyle, String? errorText, TextStyle? errorTextStyle, String? hintText, TextStyle? hintTextStyle, ColorBuilder? bgColorBuilder}) → PinDecoration -
Creates a copy of this pin decoration with the given fields replaced
by the new values.
override
-
drawCursor(
Canvas canvas, Size size, Rect rect, Cursor cursor, [Offset? offset, TextDirection textDirection = TextDirection.ltr]) → void -
inherited
-
drawPin(
Canvas canvas, Size size, String text, int pinLength, Cursor? cursor, TextDirection textDirection) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyChange(
String? pin) → void -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override