Skip to content

Commit

Permalink
Merge pull request letsar#449 from Brunobnahorny/patch-1
Browse files Browse the repository at this point in the history
Document ratio parameter in openTo method
  • Loading branch information
letsar authored Jul 11, 2024
2 parents 81d8289 + cb4def1 commit ec1a3e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ class SlidableController {
}

/// Opens the [Slidable] to the given [ratio].
///
/// The [ratio] sign will determine which direction the slidable should open.
/// ```dart
/// controller.openTo(-1); //opens slidable all the way to the left side
/// ```
Future<void> openTo(
double ratio, {
Duration duration = _defaultMovementDuration,
Expand Down

0 comments on commit ec1a3e6

Please sign in to comment.