RailTile constructor

const RailTile({
  1. Key? key,
  2. required TextDirection direction,
  3. required Widget icon,
  4. Color? iconColor,
  5. void onTap()?,
  6. Color? backgroundColor,
  7. String? label,
  8. TextStyle? collapsedTextStyle,
  9. TextStyle? expandedTextStyle,
  10. double? iconSize,
  11. required double minWidth,
  12. required double widthPercentage,
  13. EdgeInsetsGeometry? iconPadding,
  14. bool hideCollapsedText = false,
})

Implementation

const RailTile({
  Key? key,
  required this.direction,
  required this.icon,
  this.iconColor,
  this.onTap,
  this.backgroundColor,
  this.label,
  this.collapsedTextStyle,
  this.expandedTextStyle,
  this.iconSize,
  required this.minWidth,
  required this.widthPercentage,
  this.iconPadding,
  this.hideCollapsedText = false,
}) : super(key: key);