expandCollapseMorph method
- double size = 24,
- Color? color,
- 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,
);
}