open<T> method

Future<T?> open<T>(
  1. BuildContext context
)

Launches this widget as a modal bottom sheet using showCupertinoModalBottomSheet, with Expo easing animation, bounce effect, and Pylon context mirroring for internal signal propagation. Supports scrollable content via DraggableScrollableSheet integration and efficient rendering in modals.

Returns the result from the sheet's navigator or null if dismissed.

Implementation

Future<T?> open<T>(BuildContext context) {
  PylonBuilder builder = Pylon.mirror(context, (context) => this);
  return showCupertinoModalBottomSheet(
    duration: const Duration(milliseconds: 500),
    isDismissible: isDismissible,
    bounce: true,
    enableDrag: isDismissible,
    animationCurve: Curves.easeOutExpo,
    context: context,
    builder: builder,
  );
}