buildChoicesDetail method

Widget buildChoicesDetail(
  1. BuildContext context,
  2. DialogChoice choice
)

Implementation

Widget buildChoicesDetail(BuildContext context, DialogChoice choice) {
  return Expanded(
      child: Padding(
          padding: EdgeInsets.only(left: (choice.icon != null ? 15 : 0)),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              buildTitle(context, choice.title),
              buildDescription(context, choice.subtitle)
            ].where((element) => element != null).toList(),
          )));
}