expandCollapseMorph method

Widget expandCollapseMorph({
  1. double size = 24,
  2. Color? color,
  3. IconMorphStyle style = IconMorphStyle.rotateScale,
})

Create an expand/collapse icon morph.

Implementation

Widget expandCollapseMorph({
  double size = 24,
  Color? color,
  IconMorphStyle style = IconMorphStyle.rotateScale,
}) {
  return IconMorphSlot<bool>(
    connect: this,
    iconBuilder: (expanded) =>
        expanded ? Icons.expand_less : Icons.expand_more,
    size: size,
    color: color,
    morphStyle: style,
  );
}