forInstance static method

ResolvableType forInstance(
  1. Object? instance
)

Implementation

static ResolvableType forInstance(Object? instance) {
  if (instance == null) return NONE;
  return forClass(instance.runtimeType);
}