TextFormat class

The format of a run of text in a cell.

Absent values indicate that the field isn't specified.

Constructors

TextFormat({bool? bold, String? fontFamily, int? fontSize, Color? foregroundColor, ColorStyle? foregroundColorStyle, bool? italic, Link? link, bool? strikethrough, bool? underline})
TextFormat.fromJson(Map json_)

Properties

bold bool?
True if the text is bold.
getter/setter pair
fontFamily String?
The font family.
getter/setter pair
fontSize int?
The size of the font.
getter/setter pair
foregroundColor Color?
The foreground color of the text.
getter/setter pair
foregroundColorStyle ColorStyle?
The foreground color of the text.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
italic bool?
True if the text is italicized.
getter/setter pair
The link destination of the text, if any.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strikethrough bool?
True if the text has a strikethrough.
getter/setter pair
underline bool?
True if the text is underlined.
getter/setter pair

Methods

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

Operators

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