maybeOf static method

ViewModelProvider? maybeOf(
  1. BuildContext context
)

Implementation

static ViewModelProvider? maybeOf(BuildContext context) =>
    context.getElementForInheritedWidgetOfExactType<ViewModelScope>() as ViewModelProvider?;