edgeSwipe method

  1. @override
Future<void> edgeSwipe(
  1. ScreenEdge edge
)
override

A system gesture from edge (back, home, app switcher, Control Center, Notification Center).

Implementation

@override
Future<void> edgeSwipe(ScreenEdge edge) => switch (edge) {
      ScreenEdge.left => pressHardwareButton(HardwareButton.back),
      ScreenEdge.bottom => pressHardwareButton(HardwareButton.home),
      ScreenEdge.bottomHold => pressHardwareButton(HardwareButton.appSwitcher),
      ScreenEdge.topLeft => _edgeDrag(0.15, 0, 0.15, 0.5),
      ScreenEdge.topRight => _edgeDrag(0.85, 0, 0.85, 0.5),
    };