of method

_BottomDialogWrapperState of(
  1. BuildContext context
)

获取 _BottomDialogWrapperState

Implementation

static _BottomDialogWrapperState of(BuildContext context) {
  if (context.widget is BottomDialogWrapper)
    return (context as StatefulElement).state;
  final _BottomDialogWrapperState state =
      context.findAncestorStateOfType<_BottomDialogWrapperState>();
  return state;
}