SeeMoreWidget constructor

const SeeMoreWidget(
  1. String text, {
  2. Key? key,
  3. TextStyle textStyle = const TextStyle(fontSize: 16, color: Colors.black, fontWeight: FontWeight.w400),
  4. Duration animationDuration = const Duration(milliseconds: 200),
  5. String seeMoreText = "See More",
  6. TextStyle seeMoreStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Colors.black),
  7. String seeLessText = "See Less",
  8. TextStyle seeLessStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Colors.black),
  9. int trimLength = 240,
})

Implementation

const SeeMoreWidget(
  this.text, {
  super.key,
  this.textStyle = const TextStyle(
    fontSize: 16,
    color: Colors.black,
    fontWeight: FontWeight.w400,
  ),
  this.animationDuration = const Duration(milliseconds: 200),
  this.seeMoreText = "See More",
  this.seeMoreStyle = const TextStyle(
    fontSize: 14,
    fontWeight: FontWeight.w600,
    color: Colors.black,
  ),
  this.seeLessText = "See Less",
  this.seeLessStyle = const TextStyle(
    fontSize: 14,
    fontWeight: FontWeight.w600,
    color: Colors.black,
  ),
  this.trimLength = 240,
});