TextBlock constructor

const TextBlock({
  1. Key? key,
  2. String? caption,
  3. String? heading,
  4. String? subHeading,
  5. String? body,
  6. TextStyle? captionStyle,
  7. TextStyle? headingStyle,
  8. TextStyle? subHeadingStyle,
  9. TextStyle? bodyStyle,
  10. EdgeInsets? padding,
  11. double spacing = kPadding,
})

Implementation

const TextBlock({
  Key? key,
  this.caption,
  this.heading,
  this.subHeading,
  this.body,
  this.captionStyle,
  this.headingStyle,
  this.subHeadingStyle,
  this.bodyStyle,
  this.padding,
  this.spacing = kPadding,
}) : super(key: key);