LeadingConfig constructor

const LeadingConfig({
  1. Widget? icon,
  2. String? text,
  3. TextStyle textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.normal, color: Colors.black),
  4. TextOverflow textOverflow = TextOverflow.ellipsis,
  5. double spacing = 4.0,
  6. VoidCallback? onPressed,
  7. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0),
  8. double maxWidth = 120.0,
})

Implementation

const LeadingConfig({
  this.icon,
  this.text,
  this.textStyle = const TextStyle(
    fontSize: 16,
    fontWeight: FontWeight.normal,
    color: Colors.black,
  ),
  this.textOverflow = TextOverflow.ellipsis,
  this.spacing = 4.0,
  this.onPressed,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0),
  this.maxWidth = 120.0,
});