IrTextStyle class

Constructors

IrTextStyle({required String fontFamily, required double fontSize, required IrColor color, int fontWeight = 400, bool italic = false, double? lineHeight, double letterSpacing = 0, String? token})
const

Properties

color → IrColor
final
fontFamily → String
final
fontSize → double
final
fontWeight → int
final
hashCode → int
The hash code for this object.
no setterinherited
italic → bool
final
letterSpacing → double
final
lineHeight → double?
Absolute line height in logical pixels; null means font default.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String?
Text style token whose typography this matches exactly, e.g. TextTheme/bodyMedium. Color is not part of typography.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sameTypography(IrTextStyle o) → bool
Same font, size, weight, slant, line height and letter spacing.
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
withToken(String? token) → IrTextStyle

Operators

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

Static Methods

fromJson(Object? json) → IrTextStyle