TextStyle class
Constructors
- TextStyle({double? fontSize, String? color, FontWeight? fontWeight, String? fontFamily, String? backgroundColor, TextDecoration? decoration, double? letterSpacing, double? wordSpacing, double? lineHeight})
-
const
Properties
- backgroundColor → String?
-
final
- color → String?
-
final
- decoration → TextDecoration?
-
final
- fontFamily → String?
-
final
- fontSize → double?
-
final
- fontWeight → FontWeight?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- letterSpacing → double?
-
final
- lineHeight → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wordSpacing → double?
-
final
Methods
-
copyWith(
{double? fontSize, String? color, FontWeight? fontWeight, String? fontFamily, String? backgroundColor, TextDecoration? decoration, double? letterSpacing, double? wordSpacing, double? lineHeight}) → TextStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited