TextStyle class
Flutter-shaped text styling rendered with CSS typography properties.
- Annotations
Constructors
-
TextStyle({bool inherit = true, Color? color, Color? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, String? fontFamily, List<
String> ? fontFamilyFallback, double? letterSpacing, double? wordSpacing, double? height, TextDecoration? decoration, Color? decorationColor, TextOverflow? overflow}) -
const
Properties
- backgroundColor → Color?
-
final
- color → Color?
-
final
- decoration → TextDecoration?
-
final
- decorationColor → Color?
-
final
- fontFamily → String?
-
final
-
fontFamilyFallback
→ List<
String> ? -
final
- fontSize → double?
-
final
- fontStyle → FontStyle?
-
final
- fontWeight → FontWeight?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- inherit → bool
-
final
- letterSpacing → double?
-
final
- overflow → TextOverflow?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wordSpacing → double?
-
final
Methods
-
copyWith(
{bool? inherit, Color? color, Color? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, String? fontFamily, List< String> ? fontFamilyFallback, double? letterSpacing, double? wordSpacing, double? height, TextDecoration? decoration, Color? decorationColor, TextOverflow? overflow}) → TextStyle -
merge(
TextStyle? other) → TextStyle - Applies the supplied non-null values, or replaces this style when detached.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, String> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited