hasModifier method

bool hasModifier(
  1. Modifier modifier
)

Whether this style has modifier set (added and not removed).

Implementation

bool hasModifier(Modifier modifier) =>
    addModifier.contains(modifier) && !subModifier.contains(modifier);