styleProperty property

StyleProperty? styleProperty

returns the cached style (if present), searches for it in the properties otherwise

Implementation

StyleProperty? get styleProperty {
  if (_cacheStyleProperty == null) {
    List<StyleProperty> style =
        properties.whereType<StyleProperty>().toList();

    if (style.isNotEmpty) _cacheStyleProperty = style.first;
  }

  return _cacheStyleProperty;
}