Skip to content

Commit

Permalink
better optional fields por constructor API
Browse files Browse the repository at this point in the history
  • Loading branch information
kranfix committed Mar 18, 2021
1 parent 500650f commit 5eb97e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/side_menu_animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,19 @@ class SideMenuAnimation extends StatefulWidget {
this.position = SideMenuPosition.left,
this.selectedColor = Colors.black,
this.unselectedColor = Colors.green,
this.menuWidth = _sideMenuWidth,
this.duration = _sideMenuDuration,
double? menuWidth,
Duration? duration,
this.tapOutsideToDismiss = false,
this.scrimColor = Colors.transparent,
this.edgeDragWidth = _kEdgeDragWidth,
double? edgeDragWidth,
this.enableEdgeDragGesture = false,
this.curveAnimation = Curves.linear,
}) : views = null,
appBarBuilder = null,
indexSelected = null,
menuWidth = menuWidth ?? _sideMenuWidth,
duration = duration ?? _sideMenuDuration,
edgeDragWidth = edgeDragWidth ?? _kEdgeDragWidth,
super(key: key);

/// Creates a [SideMenuAnimation] with Circular Reveal animation.
Expand Down

0 comments on commit 5eb97e1

Please sign in to comment.