childCreator property

T Function() childCreator
final

This enables list to instanciate elements with given type when setting from JSON

Example:

JsonList<SomeModel>(SomeModel.new)..setFromJson([SomeModel(...),SomeModel(...)])

Implementation

final T Function() childCreator;