showSecondOption function Null safety

Future<SecondOption?> showSecondOption(
  1. BuildContext context,
  2. List<SecondOption> options
)

Implementation

Future<SecondOption?> showSecondOption(
    BuildContext context, List<SecondOption> options) async {
  SecondOption? response = await showModernFormFilterPopupMenu<SecondOption>(
    context,
    list: options
        .map((e) => ModernFormBottomSheetModel<SecondOption>(
            text: e.toElegantString, value: e))
        .toList(),
    forceMenu: true,
  );

  return response;
}