get method

T get(
  1. BuildContext context
)

Returns the dependency instance, creating it if necessary.

Implementation

T get(BuildContext context) {
  return state.getValue(context);
}