mDialogSelectDays function
Implementation
Future<int?> mDialogSelectDays() async {
final List<int> daysOptions = [30, 60, 90, 180, 360];
final String endWith = " days";
final List<String> useList = daysOptions.map((e) => "$e$endWith").toList();
final value = await mDialogSelectItemsCupertinoPicker(useList);
if (value != null) {
return daysOptions[useList.indexOf(value)];
}
return null;
}