newInstance abstract method

T newInstance()

Create a new instance of the model.

Override this to return an empty model instance.

@override
User newInstance() => User();

Implementation

T newInstance();