TextMetadata class

Constructors

TextMetadata({Color color = Colors.black, FontWeight fontWeight = FontWeight.w400, FontStyle fontStyle = FontStyle.normal, double fontSize = 14, TextAlign alignment = TextAlign.start, TextDecorationEnum decoration = TextDecorationEnum.none, List<FontFeature>? fontFeatures})
const
TextMetadata.combineWhereNotEqual(TextMetadata metadata1, TextMetadata metadata2, {bool favourFirst = true})
factory
TextMetadata.fromMap(Map<String, dynamic> map)
factory
TextMetadata.fromTextStyle(TextStyle style, {TextAlign alignment = TextAlign.start})

Properties

alignment TextAlign
final
color Color
final
decoration TextDecorationEnum
final
fontFeatures List<FontFeature>?
final
fontSize double
final
fontStyle FontStyle
final
fontWeight FontWeight
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle
no setter
styleWithoutFontFeatures TextStyle
no setter

Methods

combineWhatChanged(TextMetadataChange change, TextMetadata other) TextMetadata
This method is used to combine two TextMetadata objects relative to the specified TextMetadataChange
combineWith(TextMetadata other, {bool favourOther = true}) TextMetadata
copyWith({Color? color, FontWeight? fontWeight, FontStyle? fontStyle, double? fontSize, TextDecorationEnum? decoration, List<FontFeature>? fontFeatures, TextAlign? alignment}) TextMetadata
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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