NotusStyle class

Collection of style attributes.




hashCode int
The hash code for this object. [...]
read-only, override
isEmpty bool
Returns true if this attribute set is empty.
isInline bool
Returns true if this style is not empty and contains only inline-scoped attributes and is not empty.
isNotEmpty bool
Returns true if this attribute set is note empty.
keys Iterable<String>
Returns collection of all attribute keys in this set.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
single NotusAttribute
Checks that this style has only one attribute, and returns that attribute.
values Iterable<NotusAttribute>
Returns collection of all attributes in this set.


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


operator ==(Object other) bool
The equality operator. [...]

Static Methods

fromJson(Map<String, dynamic> data) NotusStyle