buildDescription method

Widget buildDescription(
  1. BuildContext context,
  2. Widget description
)

Implementation

Widget buildDescription(BuildContext context, Widget description) {
  return (description != null
      ? Padding(
          padding: EdgeInsetsDirectional.only(top: 2),
          child: buildTextWithStyle(
              description, Theme.of(context).textTheme.subtitle2))
      : null);
}