TextSettings class Null safety

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 and focusNode.
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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited