openedPosition property

  1. @override
ActionPosition? get openedPosition
override

the current position of the SlideActionPanel it would be null if the SlideActionPanel is not opened it would be ActionPosition.pre if the current animation value is greater than 0 it would be ActionPosition.post if the current animation value is less than 0

Implementation

@override
ActionPosition? get openedPosition {
  return switch (ratio) {
    > 0 => ActionPosition.pre,
    < 0 => ActionPosition.post,
    _ => null,
  };
}