StyleGenUtils class

Has utility methods to convert CSS to TextStyle objects

Constructors

StyleGenUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

addBgColor(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS background
addFontColor(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS color
addFontFamily(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS font-family
addFontSize(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS font-size
addFontStyle(TextStyle textStyle, String value) TextStyle
addFontWeight(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS font-weight
addLineHeight(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS line-height
addTextDecoration(TextStyle textStyle, String value) TextStyle
Creates a TextStyle to handle CSS text-decoration