getModifiers method

  1. @override
List<ContentModifierConfiguration>? getModifiers()
override

Gets the modifiers to use for the ContentItem. By default its the modifiers itself. However this acts as an extension point for custom ContentItems that may have a different strategy for applying modifiers.

Implementation

@override
List<ContentModifierConfiguration>? getModifiers() {
  return super.getModifiers() ?? category?.modifiers;
}