# createMultiple method

Future<List<T>> createMultiple(

1. int count

)

Creates multiple instances of type `T` in a single call.

This convenience method can be useful when you need several instances at once, such as for batch processing or collection population.

`count`: The number of instances to create Returns a list containing `count` new instances

Example:

    final factory = ObjectFactory<RandomNumber>(() => RandomNumber());
    final numbers = factory.createMultiple(5);
    print('Created ${numbers.length} random numbers');

## Implementation

    Future<List<T>> createMultiple(int count) async {
      final result = <T>[];

      for (int i = 0; i < count; i++) {
        final object = await get();
        result.add(object.getValue());
      }

      return result;
    }