mapEntryToWidget method

List<Widget> mapEntryToWidget(
  1. BuildContext context, {
  2. required String heading,
  3. required String subheading,
  4. bool isLastElement = false,
})

Implementation

List<Widget> mapEntryToWidget(BuildContext context,
    {required String heading,
    required String subheading,
    bool isLastElement = false}) {
  return [
    _buildInfoWithHeading(
      context,
      heading: heading,
      info: subheading,
    ),
    if (!isLastElement) const SizedBox(height: 32),
  ];
}