use<T> static method

T use<T>({
  1. bool listen = false,
})

Implementation

static T use<T>({bool listen = false}) {
  return Provider.of<T>(currentContext, listen: listen);
}