AttributedString class Null safety

A string that carries a list of StringAttributes.

Annotations

Constructors

AttributedString(String string, {List<StringAttribute> attributes = const <StringAttribute>[]})
Creates a attributed string.

Properties

attributes List<StringAttribute>
The attributes this string carries.
final
hashCode int
The hash code for this object.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
string String
The plain string stored in the attributed string.
final

Methods

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

Operators

operator +(AttributedString other) AttributedString
Returns a new AttributedString by concatenate the operands
operator ==(Object other) bool
Two AttributedStrings are equal if their string and attributes are.
override