of static method

Implementation

static ViewModelProvider of(BuildContext context) =>
    maybeOf(context) ?? (throw StateError('context out of ViewModelScope'));