reject method

dynamic reject(
  1. BuildContext context,
  2. Widget widget,
  3. void onTap(
    1. String
    )?
)

Implementation

reject(
  BuildContext context,
  Widget widget,
  void Function(String)? onTap,
) {
  showModalBottomSheet<void>(
    enableDrag: false,
    context: context,
    isScrollControlled: true,
    isDismissible: false,
    backgroundColor: Colors.transparent,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(30.0),
    ),
    builder: (BuildContext context) {
      return RejectOrderBottomsheet(
        onTap: onTap,
      );
    },
  );
}