NyTextStyle class
Helper to define text styles
Constructors
-
NyTextStyle({bool inherit = true, NyColor? color, NyColor? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, TextLeadingDistribution? leadingDistribution, Locale? locale, Paint? foreground, Paint? background, List<
Shadow> ? shadows, List<FontFeature> ? fontFeatures, List<FontVariation> ? fontVariations, TextDecoration? decoration, NyColor? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness, String? debugLabel, String? fontFamily, List<String> ? fontFamilyFallback, String? package, TextOverflow? overflow})
Properties
- background → Paint?
-
final
- backgroundColor → NyColor?
-
final
- color → NyColor?
-
final
- debugLabel → String?
-
final
- decoration → TextDecoration?
-
final
- decorationColor → NyColor?
-
final
- decorationStyle → TextDecorationStyle?
-
final
- decorationThickness → double?
-
final
- fontFamily → String?
-
final
-
fontFamilyFallback
→ List<
String> ? -
final
-
fontFeatures
→ List<
FontFeature> ? -
final
- fontSize → double?
-
final
- fontStyle → FontStyle?
-
final
-
fontVariations
→ List<
FontVariation> ? -
final
- fontWeight → FontWeight?
-
final
- foreground → Paint?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- inherit → bool
-
final
- leadingDistribution → TextLeadingDistribution?
-
final
- letterSpacing → double?
-
final
- locale → Locale?
-
final
- overflow → TextOverflow?
-
final
- package → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
Shadow> ? -
final
- textBaseline → TextBaseline?
-
final
- wordSpacing → double?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toTextStyle(
BuildContext context) → TextStyle
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited