NewInstanceCreator typedef
NewInstanceCreator =
Object Function(String name, List<Object?> args, Map<String, Object?> namedArgs)
Typedef for a function that creates a new instance of type Object
.
name
: The constructor name (e.g.,''
for default,'named'
for named constructors).args
: Positional arguments passed to the constructor.namedArgs
: Named arguments passed to the constructor.
Returns a new instance of Object
.
Implementation
typedef NewInstanceCreator = Object Function(String name, List<Object?> args, Map<String, Object?> namedArgs);