ParchmentStyle class

Collection of style attributes.

Constructors

ParchmentStyle()

Properties

hashCode int
The hash code for this object.
no setteroverride
inlineAttributes Iterable<ParchmentAttribute>
Returns inline-scoped attributes
no setter
isEmpty bool
Returns true if this attribute set is empty.
no setter
isInline bool
Returns true if this style is not empty and contains only inline-scoped attributes and is not empty.
no setter
isNotEmpty bool
Returns true if this attribute set is note empty.
no setter
keys Iterable<String>
Returns collection of all attribute keys in this set.
no setter
lineAttributes Iterable<ParchmentAttribute>
Returns line-scoped attributes
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single ParchmentAttribute
Checks that this style has only one attribute, and returns that attribute.
no setter
values Iterable<ParchmentAttribute>
Returns collection of all attributes in this set.
no setter

Methods

contains(ParchmentAttributeKey key) bool
Returns true if attribute with key is present in this set.
containsSame(ParchmentAttribute attribute) bool
Returns true if this set contains attribute with the same value as attribute.
get<T>(ParchmentAttributeKey<T> key) ParchmentAttribute<T>?
Returns ParchmentAttribute from this set by specified key.
merge(ParchmentAttribute attribute) ParchmentStyle
Merges this attribute set with attribute and returns result as a new attribute set.
mergeAll(ParchmentStyle other) ParchmentStyle
Merges all attributes from other into this style and returns result as a new instance of ParchmentStyle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(ParchmentAttribute attribute) ParchmentStyle
Puts attribute into this attribute set and returns result as a new set.
putAll(Iterable<ParchmentAttribute> attributes) ParchmentStyle
Puts attributes into this attribute set and returns result as a new set.
removeAll(Iterable<ParchmentAttribute> attributes) ParchmentStyle
Removes attributes from this style and returns new instance of ParchmentStyle containing result.
toJson() Map<String, dynamic>?
Returns JSON-serializable representation of this style.
toString() String
A string representation of this object.
override
value<T>(ParchmentAttributeKey<T> key) → T?
Returns value of specified attribute key in this set.

Operators

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

Static Methods

fromJson(Map<String, dynamic>? data) ParchmentStyle