of static method
Implementation
static RubberBottomSheetState? of(BuildContext context,
{bool nullOk = false}) {
final RubberBottomSheetState? result =
context.findAncestorStateOfType<RubberBottomSheetState>();
if (nullOk || result != null) return result;
throw FlutterError(
'RubberBottomSheet.of() called with a context that does not contain a RubberBottomSheet.\n'
'No RubberBottomSheet ancestor could be found starting from the context that was passed to RubberBottomSheet.of(). '
' $context');
}