showAddEditLinkBottomSheet function

void showAddEditLinkBottomSheet({
  1. required dynamic context,
  2. String? bottomSheetTitle,
  3. String? pinTitle,
  4. String? pinLink,
  5. required dynamic onSave(
    1. String,
    2. String
    ),
})

Implementation

void showAddEditLinkBottomSheet({
  required BuildContext context,
  String? bottomSheetTitle,
  String? pinTitle,
  String? pinLink,
  required Function(String, String) onSave,
}) {
  showModalBottomSheet(
    showDragHandle: true,
    useSafeArea: true,
    context: context,
    isDismissible: true,
    isScrollControlled: true,
    builder: (context) {
      return LinkBottomSheet(
        bottomSheetTitle: bottomSheetTitle,
        pinTitle: pinTitle,
        pinLink: pinLink,
        onSave: onSave,
      );
    },
  );
}