NestedStyleUtility class

A utility class for creating and applying nested styles.

The NestedStyleUtility provides methods to create NestedStyleAttribute instances by combining multiple Style objects. It allows for easy composition and nesting of styles.

Usage:

const apply = NestedStyleUtility();

// Create a nested style attribute from a list of styles
final nestedStyle = apply.list([style1, style2, style3]);

// Create a nested style attribute from individual styles
final nestedStyle = apply(style1, style2, style3);

Constructors

NestedStyleUtility()
Creates a new instance of NestedStyleUtility.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Style style, [Style? style2, Style? style3, Style? style4, Style? style5, Style? style6]) NestedStyleAttribute
Creates a NestedStyleAttribute from individual styles.
list(List<Style> mixes) NestedStyleAttribute
Creates a NestedStyleAttribute from a list of styles.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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