TextStyle class

Constructors

TextStyle({TextStyleType type = TextStyleType.custom, double? fontSize, Color? color, FontStyle? fontStyle, FontWeight? fontWeight, double? letterSpacing})
const
TextStyle.body1()
factory
TextStyle.body2()
factory
TextStyle.button()
factory
TextStyle.caption1()
factory
TextStyle.caption2()
factory
TextStyle.display1()
factory
TextStyle.display2()
factory
TextStyle.display3()
factory
TextStyle.title1()
factory
TextStyle.title2()
factory
TextStyle.title3()
factory

Properties

color Color?
final
fontSize double?
final
fontStyle FontStyle?
final
fontWeight FontWeight?
final
hashCode int
The hash code for this object.
no setterinherited
letterSpacing double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TextStyleType
final

Methods

copyWith({double? fontSize, Color? color, FontStyle? fontStyle, FontWeight? fontWeight, double? letterSpacing}) TextStyle
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
toString() String
A string representation of this object.
inherited

Operators

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