autoSnapEdge method
自动吸边,调用后,悬浮窗会自动滑动到屏幕边缘
type:吸边类型,默认为 SnapEdgeType.snapEdgeAuto
注意:此方法在悬浮窗没有吸边时有效,如果悬浮窗已经吸边,则不会有任何效果
Implementation
void autoSnapEdge({SnapEdgeType type = SnapEdgeType.snapEdgeAuto}) =>
_commandController.add(_ControllerCommand(ControllerEnumType.autoEdge, value: type));