hasExpandedAt method
whether the index
item is expanded according to the openedPosition
if the openedPosition is null, it would return false
if there is no ActionController at the openedPosition, it would return false
Implementation
bool hasExpandedAt(int index) {
return switch (openedPosition) {
ActionPosition.pre => preActionController?.hasExpandedAt(index) ?? false,
ActionPosition.post =>
postActionController?.hasExpandedAt(index) ?? false,
_ => false,
};
}