ExpandIcon constructor Null safety
- {Key? key,
- bool isExpanded = false,
- double size = 24.0,
- required ValueChanged<
bool> ? onPressed, - EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- Color? color,
- Color? disabledColor,
- Color? expandedColor}
Creates an ExpandIcon with the given padding, and a callback that is triggered when the icon is pressed.
Implementation
const ExpandIcon({
super.key,
this.isExpanded = false,
this.size = 24.0,
required this.onPressed,
this.padding = const EdgeInsets.all(8.0),
this.color,
this.disabledColor,
this.expandedColor,
}) : assert(isExpanded != null),
assert(size != null),
assert(padding != null);