NotusStyle class

Collection of style attributes.

Constructors

NotusStyle()

Properties

hashCode int
The hash code for this object. [...]
read-only, override
isEmpty bool
Returns true if this attribute set is empty.
read-only
isInline bool
Returns true if this style is not empty and contains only inline-scoped attributes and is not empty.
read-only
isNotEmpty bool
Returns true if this attribute set is note empty.
read-only
keys Iterable<String>
Returns collection of all attribute keys in this set.
read-only
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.
read-only
values Iterable<NotusAttribute>
Returns collection of all attributes in this set.
read-only

Methods

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. [...]
inherited
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
Returns a string representation of this object.
override
value<T>(NotusAttributeKey<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) NotusStyle