AutoFormatTextAttribute class
Attribute used by AutoFormatter.
This attribute wraps another attribute and resolve will delegate to the wrapped attribute.
This attribute is used by AutoFormatter so it can distinguish automatically applied attributes from manually applied attributes of the same type.
- Inheritance
-
- Object
- TextAttribute
- AutoFormatTextAttribute
- Annotations
Constructors
- AutoFormatTextAttribute(TextAttribute attribute)
-
Create an auto format text attribute.
const
Properties
- attribute → TextAttribute
-
The wrapped attribute that this attribute will delegate to in resolve.
final
- expandRules → SpanExpandRules
-
Rules that determine how spans with this attribute grow when insertions
happend at their boundaries.
no setteroverride
- 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
-
resolve(
BuildContext context) → TextAttributeValue -
Returns a text attribute value that can depend on
context
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited