reset static method

bool reset(
  1. BuildContext context
)

Notifies any descendant DraggableScrollableSheet that it should reset to its initial position.

Returns true if a DraggableScrollableActuator is available and some DraggableScrollableSheet is listening for updates, false otherwise.

Implementation

static bool reset(BuildContext context) {
  final _InheritedResetNotifier? notifier = context.dependOnInheritedWidgetOfExactType<_InheritedResetNotifier>();
  return notifier?._sendReset() ?? false;
}