ChevronIndicator.rightDown constructor

ChevronIndicator.rightDown({
  1. Key? key,
  2. required ITreeNode tree,
  3. Alignment alignment = Alignment.topRight,
  4. EdgeInsets padding = EdgeInsets.zero,
  5. Curve curve = Curves.linearToEaseOut,
  6. Color? color,
  7. IconData? icon,
})

Uses a chevron to indicate the expansion state. The chevron is rotated when the ITreeNode state expands or collapses. The collapsed state is a chevron pointing towards the right. The expanded state is a chevron pointing downwards.

** See also: ChevronIndicator.upDown for an up-down oriented chevron

Implementation

factory ChevronIndicator.rightDown({
  Key? key,
  required ITreeNode tree,
  Alignment alignment = Alignment.topRight,
  EdgeInsets padding = EdgeInsets.zero,
  Curve curve = Curves.linearToEaseOut,
  Color? color,
  IconData? icon,
}) =>
    ChevronIndicator._(
      key: key,
      tree: tree,
      tween: Tween(begin: 0, end: 0.25),
      icon: icon ?? Icons.keyboard_arrow_right_rounded,
      alignment: alignment,
      padding: padding,
      curve: curve,
      color: color,
    );