TextStyleConfiguration class
only for the common config of text style
Constructors
- TextStyleConfiguration({TextStyle text = const TextStyle(fontSize: 16.0), TextStyle bold = const TextStyle(fontWeight: FontWeight.bold), TextStyle italic = const TextStyle(fontStyle: FontStyle.italic), TextStyle underline = const TextStyle(decoration: TextDecoration.underline), TextStyle strikethrough = const TextStyle(decoration: TextDecoration.lineThrough), TextStyle href = const TextStyle(color: Colors.lightBlue, decoration: TextDecoration.underline), TextStyle code = const TextStyle(color: Colors.red, backgroundColor: Color.fromARGB(98, 0, 195, 255)), TextStyle autoComplete = const TextStyle(color: Colors.grey), bool applyHeightToFirstAscent = false, bool applyHeightToLastDescent = false})
-
const
Properties
- applyHeightToFirstAscent → bool
-
apply line height to the first or the last ascent
final
- applyHeightToLastDescent → bool
-
final
- autoComplete → TextStyle
-
auto complete text style
final
- bold → TextStyle
-
bold text style
final
- code → TextStyle
-
code text style
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- href → TextStyle
-
href text style
final
- italic → TextStyle
-
italic text style
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strikethrough → TextStyle
-
strikethrough text style
final
- text → TextStyle
-
default text style
final
- underline → TextStyle
-
underline text style
final
Methods
-
copyWith(
{TextStyle? text, TextStyle? bold, TextStyle? italic, TextStyle? underline, TextStyle? strikethrough, TextStyle? href, TextStyle? code, TextStyle? autoComplete, bool? applyHeightToFirstAscent, bool? applyHeightToLastDescent}) → TextStyleConfiguration -
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