buildDescription method Null safety

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

Implementation

Widget? buildDescription(BuildContext context, Widget? description) {
  if (description == null) {
    return null;
  }

  return Padding(
      padding: const EdgeInsetsDirectional.only(top: 2),
      child: buildTextWithStyle(
          description, Theme.of(context).textTheme.subtitle2!));
}