xExpandableText method

Widget xExpandableText(
  1. {CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  2. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  3. Widget expand = const Text('More Details'),
  4. Widget unexpand = const Text('less Details'),
  5. double heightunexpand = 50.0}
)

Implementation

Widget xExpandableText(
    {CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
    MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
    Widget expand = const Text('More Details'),
    Widget unexpand = const Text('less Details'),
    double heightunexpand = 50.0}) {
  return ExpandableText(
    this,
    crossAxisAlignment: crossAxisAlignment,
    expand: expand,
    heightunexpand: heightunexpand,
    mainAxisAlignment: mainAxisAlignment,
    unexpand: unexpand,
  );
}