TypeInfo<T>.fromObject constructor

TypeInfo<T>.fromObject(
  1. T o, [
  2. Iterable<Object>? arguments,
  3. Object? object
])

Implementation

factory TypeInfo.fromObject(T o,
    [Iterable<Object>? arguments, Object? object]) {
  if (arguments == null || arguments.isEmpty) {
    return TypeInfo<T>.fromType(o.runtimeType, null, object ?? o);
  }

  return TypeInfo<T>.fromType(o.runtimeType, arguments, object ?? o);
}