Creates a new instance of the provided type
, resolving the
constructor parameters automatically.
class A {}
class B {
B(A a) {
print(a); // Instance of 'A'
}
}
Source
dynamic/*=T*/ make/*<T>*/(Type/* extends T*/ type);
Creates a new instance of the provided type
, resolving the
constructor parameters automatically.
class A {}
class B {
B(A a) {
print(a); // Instance of 'A'
}
}
dynamic/*=T*/ make/*<T>*/(Type/* extends T*/ type);