TextSettings class
Represents settings used to create and draw text.
- Annotations
Constructors
- TextSettings({TextStyle textStyle = const TextStyle(fontSize: 14, color: Colors.black), FocusNode? focusNode})
-
Creates a TextSettings with the given
textStyle
andfocusNode
.const
Properties
- focusNode → FocusNode?
-
Focus node used to edit text.
This focus node will be listened to by the UI to determine user input.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle
-
The text style to be used.
final
Methods
-
copyWith(
{TextStyle? textStyle, FocusNode? focusNode}) → TextSettings - Creates a copy of this but with the given fields replaced with the new values.
-
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