InstanceConstructor<T extends JsonModel> typedef

InstanceConstructor<T extends JsonModel> = T Function()

A type definition for a function that constructs an instance of JsonModel.

This typedef is used to define factory functions that can create instances of a specific JsonModel subtype. It's commonly used in dependency injection scenarios where you need to provide a constructor function for creating model instances.

Type Parameter:

  • T: The specific subtype of JsonModel that the constructor will create.

Implementation

typedef InstanceConstructor<T extends JsonModel> = T Function();