canMergeWith method

  1. @override
bool canMergeWith(
  1. EasyAttribute<Object?> attribute
)
override

Determines if this attribute can be merged with another attribute of the same type or different types.

Override this method to define custom merge behavior for your attributes.

Returns true if this attribute can coexist with the given attribute.

Implementation

@override
bool canMergeWith(EasyAttribute<Object?> attribute) =>
    attribute is! TextDirectionAttribute;